Welcome Guest, Not a member yet? Register   Sign In
Pass current controller to Loader library.
#10

[eluser]Bramme[/eluser]
Thanks a bunch Colin and wiredesignz for your help. Though somewhere I don't like the idea of adding logic, or even just a function to my config.php file... It just doesn't feel right imo.

I like the idea of extending the base controller much more. Plus, as said before, I need to do some other logic in all my constructors.

I don't really mind the fact I had to include the class file...


Smth I just thought off however: I could do the documented extending, MY_Controller etc and then just use some logic to check if the controllers are part of the admin subdirectory. That would be even better, no?


Messages In This Thread
Pass current controller to Loader library. - by El Forum - 07-30-2008, 04:35 PM
Pass current controller to Loader library. - by El Forum - 07-31-2008, 06:48 AM
Pass current controller to Loader library. - by El Forum - 07-31-2008, 07:58 AM
Pass current controller to Loader library. - by El Forum - 07-31-2008, 08:02 AM
Pass current controller to Loader library. - by El Forum - 07-31-2008, 08:10 AM
Pass current controller to Loader library. - by El Forum - 07-31-2008, 08:18 AM
Pass current controller to Loader library. - by El Forum - 07-31-2008, 08:42 AM
Pass current controller to Loader library. - by El Forum - 07-31-2008, 08:58 AM
Pass current controller to Loader library. - by El Forum - 07-31-2008, 09:26 AM
Pass current controller to Loader library. - by El Forum - 07-31-2008, 02:20 PM
Pass current controller to Loader library. - by El Forum - 07-31-2008, 03:53 PM



Theme © iAndrew 2016 - Forum software by © MyBB