![]() |
Cannot display images in assets folder - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20) +--- Forum: Archived General Discussion (https://forum.codeigniter.com/forumdisplay.php?fid=21) +--- Thread: Cannot display images in assets folder (/showthread.php?tid=46171) |
Cannot display images in assets folder - El Forum - 10-20-2011 [eluser]Cgull[/eluser] Hello, I am using codeingniter 2.0.3 My folders are: orders -application -assets -images In my images folder I have an image called: calendar.jpg I call this image in one of my view like this: Code: <img src="<?php echo base_url();?>assets/images/calendar.jpg" /> The image is not displayed. When I go to the page source and try to go to the image I get the page not found. My htaccess file: Code: RewriteEngine on I want to use this image as the icon for the datepicker, and since the image is not displayed, I just put in a view to see if it is found. So my first question is why can't the image be found. My second question is how will I add the image to the jquery datepicker code? Will I have to hard code the path like so: Code: buttonImage: "http://localhost/orders/assets/images/calendar.jpg" Can someone help and tell me why the image is not found? Thank you. Cannot display images in assets folder - El Forum - 05-28-2012 [eluser]Unknown[/eluser] But it helped many others including me ![]() Cannot display images in assets folder - El Forum - 05-29-2012 [eluser]Cgull[/eluser] Great, now I don't feel like such a big idiot lol |