Welcome Guest, Not a member yet? Register   Sign In
MY_Controller technique not working with Reactor
#17

[eluser]LuckyFella73[/eluser]
I guess you need to extend the config.php file - in case you
didn't allready.

Put this at the end of the file and try again:

Code:
/*
| -------------------------------------------------------------------
|  Native Auto-load
| -------------------------------------------------------------------
|
| Nothing to do with cnfig/autoload.php, this allows PHP autoload to work
| for base controllers and some third-party libraries.
|
*/
function __autoload($class)
{
if(strpos($class, 'CI_') !== 0)
{
  @include_once( APPPATH . 'core/'. $class . EXT );
}
}

This is part of Phil Sturgeons tutorial how to extend the CI controller.
In case you havn't read it yet:
http://philsturgeon.co.uk/news/2010/02/C...ing-it-DRY


Messages In This Thread
MY_Controller technique not working with Reactor - by El Forum - 02-18-2011, 03:29 PM
MY_Controller technique not working with Reactor - by El Forum - 02-18-2011, 03:36 PM
MY_Controller technique not working with Reactor - by El Forum - 02-18-2011, 04:22 PM
MY_Controller technique not working with Reactor - by El Forum - 02-18-2011, 04:44 PM
MY_Controller technique not working with Reactor - by El Forum - 02-19-2011, 04:29 AM
MY_Controller technique not working with Reactor - by El Forum - 02-19-2011, 12:36 PM
MY_Controller technique not working with Reactor - by El Forum - 02-19-2011, 01:16 PM
MY_Controller technique not working with Reactor - by El Forum - 02-19-2011, 02:38 PM
MY_Controller technique not working with Reactor - by El Forum - 02-19-2011, 05:59 PM
MY_Controller technique not working with Reactor - by El Forum - 02-19-2011, 06:51 PM
MY_Controller technique not working with Reactor - by El Forum - 02-20-2011, 11:10 AM
MY_Controller technique not working with Reactor - by El Forum - 02-20-2011, 11:27 AM
MY_Controller technique not working with Reactor - by El Forum - 02-20-2011, 11:43 AM
MY_Controller technique not working with Reactor - by El Forum - 02-21-2011, 08:59 AM
MY_Controller technique not working with Reactor - by El Forum - 02-21-2011, 10:27 AM
MY_Controller technique not working with Reactor - by El Forum - 02-21-2011, 10:34 AM
MY_Controller technique not working with Reactor - by El Forum - 02-21-2011, 11:17 AM
MY_Controller technique not working with Reactor - by El Forum - 02-21-2011, 11:40 AM
MY_Controller technique not working with Reactor - by El Forum - 02-22-2011, 02:10 AM
MY_Controller technique not working with Reactor - by El Forum - 02-22-2011, 03:57 AM
MY_Controller technique not working with Reactor - by El Forum - 02-22-2011, 04:43 AM



Theme © iAndrew 2016 - Forum software by © MyBB