![]() |
Nooobie Question About Constants - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20) +--- Forum: Archived General Discussion (https://forum.codeigniter.com/forumdisplay.php?fid=21) +--- Thread: Nooobie Question About Constants (/showthread.php?tid=19185) |
Nooobie Question About Constants - El Forum - 05-30-2009 [eluser]ctc_media[/eluser] Iam in second yr uni learning php and we have been given a task to use a framework such as ci. which by the sounds of it seems to be the easiest ![]() is there an easy way to create constants for instance style and including javascript for example file1 would include the header including css and javascript linkingetc file2 the layout and content to load into the content area file3 footer if you get what I mean is this possible by implamenting any code to make calling them easier? thanks Nooobie Question About Constants - El Forum - 05-30-2009 [eluser]SpooF[/eluser] Have you looked at the view library? I code my own library that implements the standard CI view library that automatically includes my header and foot so I don't have to do it inside my controller. Nooobie Question About Constants - El Forum - 05-30-2009 [eluser]ctc_media[/eluser] i am having a quick read through the user_guid i havent got to that section i will thanx |