Welcome Guest, Not a member yet? Register   Sign In
Load a function when after the controller
#2

[eluser]Pascal Kriete[/eluser]
Using __destruct does not work very well because you can no longer use the loader, which means you would have to preload the footer and keep it in memory while the controller is executed.

I usually do this with a library (i.e use the library to handle view loading instead of calling load->view directly), but another solution might be to add an _output function to your parent class. That will break a few other things though (most notably caching).


Messages In This Thread
Load a function when after the controller - by El Forum - 01-27-2009, 08:07 AM
Load a function when after the controller - by El Forum - 01-27-2009, 08:28 AM
Load a function when after the controller - by El Forum - 01-27-2009, 11:06 AM
Load a function when after the controller - by El Forum - 03-11-2009, 09:21 AM
Load a function when after the controller - by El Forum - 03-11-2009, 09:43 AM



Theme © iAndrew 2016 - Forum software by © MyBB