Welcome Guest, Not a member yet? Register   Sign In
Newbie Question
#2

[eluser]jedd[/eluser]
Hi Nicholas and welcome to the CI forums.

I suspect you want to read [url="http://codeigniter.com/wiki/Header_and_Footer_and_Menu_on_every_page_-_jedd/"]this page in the wiki[/url] - it'll point you at extending your core controller - using the MY_Controller stuff. This is also documented in the manual, but have a read of my wiki page first and see if that makes sense.

You'll get a few gains there - title info should probably only really be displayed in one view file (a partial that contains header information), config stuff can be pulled in at MY_Controller into $this->foo type variables so they're accessible everywhere else (though this defeats much of the benefit of using the Config class, I think).


Messages In This Thread
Newbie Question - by El Forum - 10-22-2009, 01:46 PM
Newbie Question - by El Forum - 10-22-2009, 02:00 PM



Theme © iAndrew 2016 - Forum software by © MyBB