07-31-2008, 02:20 PM
[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?
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?