Welcome Guest, Not a member yet? Register   Sign In
linking and server file paths
#1

[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!
#2

[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.
#3

[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?




Theme © iAndrew 2016 - Forum software by © MyBB