Welcome Guest, Not a member yet? Register   Sign In
CSS is being generated?
#31

[eluser]pickupman[/eluser]
[quote author="squawk" date="1278792167"]The css is a static file in your public folder. Codeigniter has nothing to do with it. To make the link work from all URLs you just need to make it absolute. Otherwise, the browser (not Codeigniter) simply appends it to the current URL. In the case of /login/ that would be /login/css/etc, in the case of /login it would be /css/etc as login (without the trailing slash) is viewed as a file rather than a directory. Just put the extra / in the css link and it will work.[/quote]

Good explanation. Always one of the things to think about when linking assets. Sometimes projects will be in subfolder with assets in subfolder, and vice versa. I always try one and then the other to make it work.




Theme © iAndrew 2016 - Forum software by © MyBB