Welcome Guest, Not a member yet? Register   Sign In
Load Default
#2

[eluser]vitoco[/eluser]
what you need is a HOOK

http://ellislab.com/codeigniter/user-gui...hooks.html

More specifically, the "display_override" Hook :

Code:
display_override
Overrides the _display() function, used to send the finalized page to the web browser at the end of system execution. This permits you to use your own display methodology. Note that you will need to reference the CI superobject with $this->CI =& get_instance() and then the finalized data will be available by calling $this->CI->output->get_output()

of course, the hook runs on every load of the system, so if you wanna do the "AUTOMATICALLY" part only for that controller, you must condition it by url

Saludos


Messages In This Thread
Load Default - by El Forum - 06-12-2011, 11:14 AM
Load Default - by El Forum - 06-13-2011, 12:11 AM
Load Default - by El Forum - 06-13-2011, 06:12 AM
Load Default - by El Forum - 06-13-2011, 10:53 AM
Load Default - by El Forum - 06-13-2011, 10:58 AM
Load Default - by El Forum - 06-13-2011, 11:19 AM
Load Default - by El Forum - 06-13-2011, 01:01 PM
Load Default - by El Forum - 06-14-2011, 04:46 PM
Load Default - by El Forum - 06-15-2011, 04:37 PM



Theme © iAndrew 2016 - Forum software by © MyBB