I'm studying php and now I would learn codeigniter framework. I alread know how MCV pattern works. I'm building a site using codeigniter framework but a thing it isn't clear. in all folders contained in codeigniter folder where do I have to put css,imgs,script of my site?there is mabye some fixex place?
3 Answers
Have a look at this post: codeigniter separating frontend and backend
I answered a similar question yesterday on separating front-end and back-end code, but if you have a look at how I have it set up there, I've separated the CodeIgniter application code from the site assets.
This helps in general security because all of your application files are outside of your web root, which means they can't be accessed directly through a browser.
Expanding on the assets bit here:
/ application
/ - /admin
/ - - /config
/ - - /controllers
/ - - /models
/ - - /views
/ - /public
/ - - /config
/ - - /controllers
/ - - /models
/ - - /views
/ core
/ - /all the core stuff
/ public_html
/ - /admin
/ - - /assets
/ - - - /images
/ - - - /scripts
/ - - - /styles
/ - - index.php
/ - /assets
/ - - /images
/ - - /scripts
/ - - /styles
/ - index.php