• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
where to place images folder in codeigniter

where to place images folder in codeigniter and what's the path to it?

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


[eluser]Colin Williams[/eluser]
Or just host it right off of your webroot and do something like
<img src="/images/smile.gif" alt="">

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 =(

&lt;base href="http://pefexport/" /&gt;

My files are at root folder like system folder.

Some can help me? ty =)

[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 &lt;base&gt; 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)

Colin i found the error, was at my .htaccess config. Anyway thx for help man Wink

[eluser]Colin Williams[/eluser]
Ahah! Good to hear.

Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  

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