In general, the following interests. There is a usual site on php by the principle of MVC. It has a modular structure. Each module has a user part (external) and admin (the one in the admin). Now the module structure is as follows:
-Module --frontend ---models ---views ---controllers ----ItemController.php --backend ---models ---views ---controllers ----ItemController.php Does it work, but maybe someone will suggest a better / better structure?