• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Where to include jquey and css file in codeigniter.

#1
[eluser]Kiran cet[/eluser]
Hai friends...

I am new to codeigniter. Now i want to include jquery.js file in my view page. How can i do that ? which is the best approach ? Where should i put my jquery.js file ?

please help me

Thanks.

#2
[eluser]CroNiX[/eluser]
Anywhere that is publicly accessible, which would NOT be within the /application or /system folders.

Code:
-public_html/
--assets/
----css/
----js/
----img/
--system/
--application/
--index.php

Code:
<img src="&lt;?php echo base_url('assets/img/my_img.jpg'); ?&gt;" alt="" />
produces
Code:
<img src="http://yoursite.com/assets/img/my_img.jpg" alt="" />


Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2020 MyBB Group.