• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Problem with image and css source

I have tried the following to work with my image/css/js source-

1. Using base url
<base href="http://localhost/codeigniter/application/views/" />
<link href="banner/mainLayout.css" rel="stylesheet" type="text/css">
<div id="banner">Content for  id "banner" Goes Here</div>
<img src="images/images.jpeg">
2.Passing base_url() from controller class and then adding image/css folder path to it as a source.
3. using full url - www.mydomain.com/application/views/images/image.jpg

but I cant be sure which is d right process to do it. I also tried using "Asset helper" plugin.I put the asset folder in d root directory and used- image_asset('images.jpg') in the view file but nothing worked.

One more thing is confusing me. Can I use all the class,helper and library in all the controller AND view files. I mean can they be used anywhere or only in controller classes. If not which is to use where.

And what is d difference between class and library ...
Pls help

Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  

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