php - Should we use separate includes and classes folders for front end and backend (admin panel)? -


I am developing a website that has two stages - the end of public users and all other websites such as the admin panel The last end for is usually I want to know that I should make separate and class folders for front end and backend (under the Admin folder), or should I use common folder for both areas? Front end files are kept at the root level. There is another folder named Admin, which contains all administrator files and folders. So if I make classes and it contains the folder (under the admin folder) and uses the same folder at the front end, will it be wise? Should DB configuration files be separated for both ends? Should continue with the same idea? How do the professionals?

Edit -

I am projecting in basic PHP and there is no framework. Can you guide me to better professional directory structure?

It would be better to use the same folder because many common classes and both levels of your site are included . This makes managing things easy.

You can only enter 'Admin Only' class in the subfolder so that you can distinguish them correctly.

Comments

Popular posts from this blog

Java - Error: no suitable method found for add(int, java.lang.String) -

java - JPA TypedQuery: Parameter value element did not match expected type -

c++ - static template member variable has internal linkage but is not defined -