![]() |
Image, CSS, Js, Path - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20) +--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forumdisplay.php?fid=23) +--- Thread: Image, CSS, Js, Path (/showthread.php?tid=40416) |
Image, CSS, Js, Path - El Forum - 04-07-2011 [eluser]j4zzyh4ck3r[/eluser] Where should I put my assets folder (images, styles, scripts, etc) ? How I call it in my view, coz I'm try to used "./assets/images/1.jpeg" failed (my assets folder is inside application folder and at the same level with mvc folders) Thanks in advance ![]() Image, CSS, Js, Path - El Forum - 04-07-2011 [eluser]toopay[/eluser] put url helper on your autoload file, then you can use something like ... Code: <img src="<?php echo site_url('assets/images/1.jpeg') ?>" alt="filename" title="caption" /> Image, CSS, Js, Path - El Forum - 04-07-2011 [eluser]toopay[/eluser] put your assets folder in same level with 'application' and 'system'... |