where to place images folder in codeigniter - 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: where to place images folder in codeigniter (/showthread.php?tid=10157) |
where to place images folder in codeigniter - El Forum - 07-21-2008 [eluser]belbek[/eluser] where to place images folder in codeigniter and what's the path to it? where to place images folder in codeigniter - El Forum - 07-21-2008 [eluser]Yash[/eluser] You can use base_url() and can place image folder anywhere. for ex you can put image folder where you have your system folder. to access image Code: <?=base_url()?>image/image.jpg where to place images folder in codeigniter - El Forum - 07-21-2008 [eluser]belbek[/eluser] thx where to place images folder in codeigniter - El Forum - 07-21-2008 [eluser]Colin Williams[/eluser] Or just host it right off of your webroot and do something like Code: <img src="/images/smile.gif" alt=""> where to place images folder in codeigniter - El Forum - 07-31-2008 [eluser]Sphinter[/eluser] Im with template library (http://www.williamsconcepts.com/ci/codeigniter/libraries/template/) working, but my template wont access images/javascript/styles files i using baseurl at masterpage but it wont work =( Code: <base href="http://pefexport/" /> My files are at root folder like system folder. Some can help me? ty =) where to place images folder in codeigniter - El Forum - 07-31-2008 [eluser]Colin Williams[/eluser] Sphinter, please post the URL where you assets exist and then post the URL that is being generated by the Template class. If they are one in the same, your <base> tag might be causing the issue. Also, are you echoing $_styles and $_scripts in your master template? (Template does nothing funny with paths. It just prefixes the paths you provide with the base_url you configured in $config) where to place images folder in codeigniter - El Forum - 07-31-2008 [eluser]Sphinter[/eluser] Colin i found the error, was at my .htaccess config. Anyway thx for help man where to place images folder in codeigniter - El Forum - 07-31-2008 [eluser]Colin Williams[/eluser] Ahah! Good to hear. |