07-21-2008, 03:18 AM
[eluser]belbek[/eluser]
where to place images folder in codeigniter and what's the path to it?
where to place images folder in codeigniter and what's the path to it?
where to place images folder in codeigniter
|
07-21-2008, 03:18 AM
[eluser]belbek[/eluser]
where to place images folder in codeigniter and what's the path to it?
07-21-2008, 03:27 AM
[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
07-21-2008, 04:22 AM
[eluser]Colin Williams[/eluser]
Or just host it right off of your webroot and do something like Code: <img src="/images/smile.gif" alt="">
07-31-2008, 01:59 PM
[eluser]Sphinter[/eluser]
Im with template library (http://www.williamsconcepts.com/ci/codei.../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 =)
07-31-2008, 02:11 PM
[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)
07-31-2008, 02:55 PM
[eluser]Sphinter[/eluser]
Colin i found the error, was at my .htaccess config. Anyway thx for help man ![]() |