Welcome Guest, Not a member yet? Register   Sign In
controller inheritance
#9

[eluser]Henrik Pejer[/eluser]
One can easily create a MY_Controller in the application/libraries section and then have all your controllers extend MY_Controller instead of Controller.

After all, that's what the MY_xxx functionality of CI is there for: to let you easily extend the core classes and CI will load them autmaticly.

Look here: http://ellislab.com/codeigniter/user-gui...asses.html

At the bottom of the page you even have an example with the default 'welcome' controller base on an extended controller...

So.... just a little bit of RTFM and you'll get there Wink


Messages In This Thread
controller inheritance - by El Forum - 06-30-2008, 11:42 PM
controller inheritance - by El Forum - 07-01-2008, 12:07 AM
controller inheritance - by El Forum - 07-01-2008, 12:47 AM
controller inheritance - by El Forum - 07-01-2008, 04:40 AM
controller inheritance - by El Forum - 07-01-2008, 09:45 AM
controller inheritance - by El Forum - 07-01-2008, 01:19 PM
controller inheritance - by El Forum - 07-01-2008, 01:25 PM
controller inheritance - by El Forum - 07-01-2008, 02:08 PM
controller inheritance - by El Forum - 07-01-2008, 03:17 PM
controller inheritance - by El Forum - 07-02-2008, 02:42 AM
controller inheritance - by El Forum - 07-02-2008, 05:51 AM
controller inheritance - by El Forum - 07-02-2008, 10:20 AM
controller inheritance - by El Forum - 07-02-2008, 11:07 AM
controller inheritance - by El Forum - 12-17-2010, 07:20 AM



Theme © iAndrew 2016 - Forum software by © MyBB