CodeIgniter Forums
Extending CodeIgniter $this->load->view() - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Archived Discussions (https://forum.codeigniter.com/forum-20.html)
+--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forum-23.html)
+--- Thread: Extending CodeIgniter $this->load->view() (/thread-59427.html)



Extending CodeIgniter $this->load->view() - El Forum - 10-04-2013

[eluser]Unknown[/eluser]
Hello everybody

I need to found a theme-structure for CodeIgniter. Now, what do I need is to extend the view() function of codeIgniter. How shall I do this?

I want to add a constant path in the view function so when the user calls $this->load->view('index') it loads theme/index.php

thanks