Welcome Guest, Not a member yet? Register   Sign In
css and js files
#1

[eluser]Avril[/eluser]
Hello,

I managed to add css and js files into the header of my page, the css and js files are loaded.
The thing is, I've put the files and folders directly in the root folder and not in the application/views folder, I would to have them in the application/views folder, is this possible?

Thanks! Smile
#2

[eluser]teampoop[/eluser]
Where it is possible to put them in base_url()/system/application/views, I recommend keeping the presentation files (css/js) separate from the application files.
#3

[eluser]pickupman[/eluser]
Some people actually like creating an assets folder under application. That way when you move code over to a new ci site, you have asset files that go with that application.

Whatever suits your needs, do it.
#4

[eluser]Greg Aker[/eluser]
Don't put static assets in the application directory. Ideally, this should reside above the document root. As pickupman suggests, pick a place and put it there Smile
#5

[eluser]Avril[/eluser]
Allright, I know what I've got to do now.

I think I'll make an assets folder in the root and put my css "template" there.

Thanks!




Theme © iAndrew 2016 - Forum software by © MyBB