Welcome Guest, Not a member yet? Register   Sign In
Nooobie Question About Constants
#1

[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 Smile any whooo

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
#2

[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.
#3

[eluser]ctc_media[/eluser]
i am having a quick read through the user_guid i havent got to that section i will thanx




Theme © iAndrew 2016 - Forum software by © MyBB