wrapper method |
Hi,
So the thing is i have a base class for all my controllers named MY_Controller. PHP Code: class MY_Controller extends CI_Controller what i want is CI calling render() after method() so http://www.example.com/example/method would produce this output: in method in render my question is: "how can i do that?", calling render() in the destructor?
Lumos...
What is render()?
Practical guide to IgnitedCMS - Book coming soon, www.ignitedcms.com
Super easy.
PHP Code: public function method() Or if you don't want method() calling render() directly PHP Code: class Example extends MY_Controller
i think i didnt explain well
![]() PHP Code: class Example extends MY_Controller the render() method actually calls $this->load->view() to add header, body and footer. PHP Code: class MY_Controller extends CI_Controller i did this but it can lead to security issues
Lumos...
And how do think it is going to call it automatically if you do not invoke the method?
What did you Try? What did you Get? What did you Expect?
Joined CodeIgniter Community 2009. ( Skype: insitfx )
|
Welcome Guest, Not a member yet? Register Sign In |