Reputation: 2449
If I am using this php file structure: https://github.com/panique/php-login-minimal
Can someone tell where I put my stylesheets, would I create a "static" folder at the same level as views? Or instead put that whole structure in a folder called "application" and then put "public" folder outside it?
If I have divisions or folders, such as "admin", "blog", "forum", where do I put those PHP files, would again I make a folder called "admin" in the same level as "views", and put my admin page templates in there?
Any input on this would be appreciated.
James
Upvotes: 0
Views: 888
Reputation: 31749
1 -> You can create a folder to use it as public folder at the same lavel where you can store your css,js and other files and access them as required.
2 -> You can create classes respectively with required methods in classes folder and create the view files in the view.
You have to be careful about the paths for accessing them.
Upvotes: 1
Reputation: 6361
For css files you may create a folder named css in your app/public folder. If you have folder like admin forum etc you put them into app/public folder. You may also refer this page to have a better understanding of the MVC structure
Upvotes: 1