I started to work with CodeIgniter today! So i got 2 simple questions!
Question 1 There is any way to automate the way to reference images in php code, instead to writing img/mainpage/folder.png everytime
?
Can i set a global variable with path of img files and use this in all pages? Example: set $IMGPATH = '..\img\'.
And use something like <img src='$IMGPATH\myimage.png'
in all pages?
Question 2 There is any way to load my JS and CSS files just one time and let it avaliable for all pages instead to stay loading JS and CSS files on every page header?
How can i optimze my CSS and JS files using CodeIgniter and load it ONE TIME and let it avaliable for all pages?