Can _output function within a controller load views? |
[eluser]christian.schorn[/eluser]
Actually I think this is not a bug - if you go through the routes to find the controller, instantiate it (and maybe load a lot of libraries via the controllers constructor) you lose very much of the effectiveness of CIs caching as it is. In this case it would be enough to make a special method, either in a MY_Controller, or as you need it. Example: Code: class MY_Controller extends Controller Then there are hooks ... you could write your own cache_override hook ... but that's a little much just for layout purposes, IMO. Edit: Or you could do it via a library, as gtech posted, while I was writing this ... |
Messages In This Thread |
Can _output function within a controller load views? - by El Forum - 05-04-2008, 02:20 PM
Can _output function within a controller load views? - by El Forum - 05-04-2008, 03:31 PM
Can _output function within a controller load views? - by El Forum - 05-04-2008, 03:58 PM
Can _output function within a controller load views? - by El Forum - 05-04-2008, 04:06 PM
Can _output function within a controller load views? - by El Forum - 05-04-2008, 04:49 PM
Can _output function within a controller load views? - by El Forum - 05-04-2008, 05:06 PM
Can _output function within a controller load views? - by El Forum - 05-04-2008, 05:23 PM
Can _output function within a controller load views? - by El Forum - 05-04-2008, 05:34 PM
Can _output function within a controller load views? - by El Forum - 05-04-2008, 05:39 PM
Can _output function within a controller load views? - by El Forum - 05-04-2008, 05:52 PM
|