linking and server file paths - 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: linking and server file paths (/showthread.php?tid=23346) |
linking and server file paths - El Forum - 10-07-2009 [eluser]pdxbenjamin[/eluser] I'm pretty sure I just don't know how to ask google or the user guide the correct question to get my problem solved... so here it goes. Any help is greatly appreciated. I run CI on CentOS, not that really matters however... just as a bases for my issue. For the most part CI runs great except for how I must link to internal files. I keep my CSS, Images, JS in an Assets folder on the same level as my views, controllers, and models. I'll make a picture to help assist in the explanation. -site --assets ---css ---images ---js --config --controllers --errors --libraries --models --views In my views.. when linking to the style sheet. This is my ridiculously long file path. "<?=base_url()?>system/application/site/assets/css/style.css" Is there something, anything I'm just plan overlooking when setting up the server, or my CI install that's not allowing me to just do. "./assets/css/style.css" ? Thanks! linking and server file paths - El Forum - 10-07-2009 [eluser]joeizang[/eluser] dude, check your uri settings. make sure in your config file your base url is set and that you have loaded the url helper so CI can make sense of base_url etc. linking and server file paths - El Forum - 10-07-2009 [eluser]pdxbenjamin[/eluser] [quote author="joeizang" date="1254984306"]dude, check your uri settings. make sure in your config file your base url is set and that you have loaded the url helper so CI can make sense of base_url etc.[/quote] I do have url helper loaded, and my base_url is... $config['base_url'] = "http://site.com/"; Should it not be? |