map folder like images, css, etc - 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: map folder like images, css, etc (/showthread.php?tid=21457) |
map folder like images, css, etc - El Forum - 08-10-2009 [eluser]new_igniter[/eluser] Hello, I must be missing something here. I went to add a new folder "charts" in the web folder, next to images, js, etc. In my app, I reference images like /images/filename but when I go to reference a file out of the new folder I created, using /charts/chartname it cannot find the folder. How do I map it as such so that I can reference the newly created charts folder like /images Thanks!!! map folder like images, css, etc - El Forum - 08-10-2009 [eluser]jcavard[/eluser] [quote author="new_igniter" date="1249964234"]Hello, I must be missing something here. I went to add a new folder "charts" in the web folder, next to images, js, etc. In my app, I reference images like /images/filename but when I go to reference a file out of the new folder I created, using /charts/chartname it cannot find the folder. How do I map it as such so that I can reference the newly created charts folder like /images Thanks!!![/quote] You should be able to. How do you call it? any code? map folder like images, css, etc - El Forum - 08-10-2009 [eluser]jedd[/eluser] Have you perchance installed an .htaccess file that prevents access to this new folder? map folder like images, css, etc - El Forum - 08-11-2009 [eluser]verynewtothis[/eluser] If i understood it correctly ... this would do.. Code: <?php echo base_url()?>/charts/... map folder like images, css, etc - El Forum - 08-13-2009 [eluser]new_igniter[/eluser] hmm, I took over the code so I need to look at the htaccess. Thanks!! |