Adding external (Menu) JavaScript, CSS and Images in a project using CodeIgniter
Filed Under ( CSS, Codeigniter, Javascript, PHP, Programming, Tutorial ) by admin on 29-07-2008
Tagged Under : Codeigniter, CSS, Javascript, PHP, Programming
Open config.php file (Under application/config folder) and change the following line
$config['base_url'] = “”;
to
$config['base_url'] = “http://localhost/cimenu”; //here cimenu is the folder where all the files of CodeIgniter is
Now open autoload.php file (Under application/config folder) and change the following line
$autoload['helper'] = array();
to
$autoload['helper'] = array(’url’, ‘form’);
Now create a folder named menu under cimenu(This is the project name) folder, that is, in your root folder. Now put all the files of the external menu to the menu folder under cimenu.
Lets create a php file and name it mymenu.php under application/controller folder and write the following code: Read the rest of this entry »

