[eluser]Out of Control[/eluser]
I have this in MY_Router.php:
Code:
/* Check for static pages */
require_once( BASEPATH . "database/DB.php" );
$DB = &DB;();
$query = $DB->query( 'SELECT statp_url FROM hn_static_page' );
I believe CI doesn't load CI_Controller until after MY_Router.php, however this did work in CI 2.0.x. I've just upgraded to the latest version of CI, and I upgraded HMVC and now I get the "Class 'CI_Controller' not found" error.
I'm sure this is a fairly simple solution, but I simply can't get my brain around it. Any suggestions to help point me in the right direction?
Thank you.