Welcome Guest, Not a member yet? Register   Sign In
Autoloading HTML? Autoloading functions?
#2

[eluser]mddd[/eluser]
Some people like to put some code in a hook or change the output class.
Personally, I just put a line " $this->load->view('header'); " in my view. That's easy because you can load a view from another view.
This way, you can easily select another header view for different kinds of pages, like an admin page.

As for models, there is always the class constructor which you can use to do stuff on loading.


Messages In This Thread
Autoloading HTML? Autoloading functions? - by El Forum - 07-14-2010, 10:34 PM
Autoloading HTML? Autoloading functions? - by El Forum - 07-15-2010, 01:20 AM
Autoloading HTML? Autoloading functions? - by El Forum - 07-15-2010, 11:41 AM
Autoloading HTML? Autoloading functions? - by El Forum - 07-15-2010, 04:31 PM



Theme © iAndrew 2016 - Forum software by © MyBB