Welcome Guest, Not a member yet? Register   Sign In
Do something on every page
#3

[eluser]Frychiko[/eluser]
you could make it a member of your controller class..
Code:
class My_controller {
var $menu = array("bla, bla");

then in your view access the variable directly...

Code:
<?=$this->menu?>

so you can now cut it out from your controller function.

If it's across multiple controllers, you can put the menu in a library.


Messages In This Thread
Do something on every page - by El Forum - 09-01-2008, 03:17 PM
Do something on every page - by El Forum - 09-01-2008, 05:34 PM
Do something on every page - by El Forum - 09-01-2008, 05:52 PM



Theme © iAndrew 2016 - Forum software by © MyBB