Welcome Guest, Not a member yet? Register   Sign In
Using php5 __autoload function inside controllers classes to autoload models or libraries
#2

[eluser]xwero[/eluser]
If you look at Kohanas code they assign an auto_load function using the spl_autoload_register function in their front controller. In CI the autoloading method is executed when you initialize the controller. So what you can do is to replace the
[code]$this->load->_ci_autoloader();[code]
with the spl_autoload_register function.

That would do the trick i guess.


Messages In This Thread
Using php5 __autoload function inside controllers classes to autoload models or libraries - by El Forum - 12-16-2008, 04:12 AM



Theme © iAndrew 2016 - Forum software by © MyBB