Where and how do I include .js files in Views in CodeIgniter?
I have tried this:
It's not the "index.php" file that is the view. The view is whatever is loaded in your controller when you do a
$this->load->view("viewname");
The file "viewname.php" can then include the .js files, just as a normal .html (or .php) file would:
You may want to create a default view or a "header" view that includes some or all of the (common) .js files for your project.
-CF