Newbie Question

#1
[eluser]musonic[/eluser]
I've only been using CodeIgniter for one day, so apologies if this is an incredibly stupid question!
I've created a view to generate an HTML header which will be used across all pages on my application. I've worked out how to store paths to CSS, Javascript files etc. along with metadata like keywords, title info etc. in the config file and then calling it in the controller using
Code:
$data[foo] = $this->config->item[foo];
before passing it to the view.
Surely there is someway that I don't have to assign all these elements into the $data array for every controller that I write. Could someone explain how best to it?
Many thanks.


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

Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2020 MyBB Group.