I am new in CI - and the framework is awesome.
These are the best answers I can get:
- CodeIgniter: How do I include a .js file in view?
- Codeigniter: How to include javascript files
I am trying to include js/css files but: My CI folder including application and system are not installed on the http(/var/www/)[for default installation] folder, I placed somewhere else. So i assume their installations above are in http default folder, I have :
http:
/var/www
CI:
/opt/codeigniter
+aplication
+system
Thank you so much in advance
base_url()will return your project path. Then you can use../to include file with the correct path.