Commits

Harro Verton  committed 5225686

make sure the module router loads our test base controller, otherwise routing to the example module controllers will fail

  • Participants
  • Parent commits bfe4c82

Comments (0)

Files changed (1)

File application/controllers/modulerouter.php

  * @link
  */
 
-class Modulerouter extends Controller {
+class Modulerouter extends MY_Controller {
 
 	/*
 	 * constructor
 	 */
 	function Modulerouter()
 	{
-		parent::Controller();
+		parent::MY_Controller();
+
+		// load the Admin base controller to test indirect controller extension
+		// note: you don't need this if you don't use base classes, or if you
+		// have chosen to autoload them (see Phil Sturgeons article on Base classes)
+		if ( (int) CI_VERSION < 2 )
+		{
+			require_once APPPATH.'libraries/Admin_controller'.EXT;
+		}
+		else
+		{
+			require_once APPPATH.'core/Admin_controller'.EXT;
+		}
 	}
 
 	/*