WordPress database error: [Table './ay6u3nor6dat6ba1/kn6_ayu1n9k4_5_actionscheduler_actions' is marked as crashed and last (automatic?) repair failed]
SELECT a.action_id FROM kn6_ayu1n9k4_5_actionscheduler_actions a WHERE 1=1 AND a.hook='aioseo_send_usage_data' AND a.status IN ('in-progress') ORDER BY a.scheduled_date_gmt ASC LIMIT 0, 1

WordPress database error: [Table './ay6u3nor6dat6ba1/kn6_ayu1n9k4_5_actionscheduler_actions' is marked as crashed and last (automatic?) repair failed]
SELECT a.action_id FROM kn6_ayu1n9k4_5_actionscheduler_actions a WHERE 1=1 AND a.hook='aioseo_send_usage_data' AND a.status IN ('pending') ORDER BY a.scheduled_date_gmt ASC LIMIT 0, 1

Adding sub controllers in Codeigniter | Loop and Break

Adding sub controllers in Codeigniter

In Codeigniter the index() method is always loaded by default if the second segment of the URI is empty. Like this :
http://localhost/myApp/index.php/Hello
Other than this if we want to load a another method from the same URL then we may add other methods as sub controllers.

Example (Hello.php)

<?php
class Hello extends CI_Controller {
	public function index()
	{
		echo "Hello World!";
	}

	public function anotherMethod()
	{
		echo "Hello another method";
	}
}

Output

URL : http://localhost/myApp/index.php/Hello/anotherMethod
Output : Hello another method

Share

You may also like...