Welcome Guest, Not a member yet? Register   Sign In
Assets Folder Location


I am new to Codeigniter, and I have a question about placement of my assets folder (specifically, a folder containing my CSS stylesheets).

I have read comments suggesting that it is best practice to place the assets folder at the same level as the application and system folders. However, I would like to place the assets folder within the application folder, because I want to use php application functions within my CSS script (specifically, I want to be able to use the base_url() function within my CSS script, and to my understanding this requires the CSS file to be located under the application folder). But if I place the assets folder under the application folder, my views cannot access the stylesheets enclosed within the assets folder, since the application folder can only be accessed through index.php (that is to say, I am unable to link my views to the CSS sheets using the "href" attribute within the <link> tag).

I apologize if my question is vague or if my problem was improperly laid out. Thank you so much for your help!

-- css
-- images
-- js
-- etc

Theme © iAndrew 2016 - Forum software by © MyBB