Welcome Guest, Not a member yet? Register   Sign In
include main app controller only once
#2

[eluser]coolfactor[/eluser]
The Controller is a library, so it can be extended by creating a MY_Controller class in your application/libraries folder. It will be autoloaded for you, and you just need to extend your page controller from it. Put all your site-wide functionality into MY_Controller. Also, if a particular page controller does _not_ need any of the site-wide functionality, you can extend it from the Controller class in the usual way.


Messages In This Thread
include main app controller only once - by El Forum - 08-24-2007, 09:15 AM
include main app controller only once - by El Forum - 08-24-2007, 10:19 AM
include main app controller only once - by El Forum - 08-24-2007, 10:55 AM
include main app controller only once - by El Forum - 08-24-2007, 11:10 AM
include main app controller only once - by El Forum - 08-24-2007, 11:43 AM
include main app controller only once - by El Forum - 08-24-2007, 11:48 AM
include main app controller only once - by El Forum - 08-24-2007, 12:05 PM
include main app controller only once - by El Forum - 08-24-2007, 02:08 PM
include main app controller only once - by El Forum - 08-24-2007, 03:03 PM
include main app controller only once - by El Forum - 08-24-2007, 04:57 PM
include main app controller only once - by El Forum - 08-24-2007, 05:05 PM
include main app controller only once - by El Forum - 08-24-2007, 05:29 PM
include main app controller only once - by El Forum - 08-24-2007, 05:32 PM



Theme © iAndrew 2016 - Forum software by © MyBB