I have been thinking long and hard about MVC and how to create a scalable web application, where it would be easy to change business logic, implement new modules and so on. But im stuck on the Admin/Public part, Views vs. templates, and Domain Business Logic vs Services, modules (i decided to call this one modules instead of application, since application is the whole thing, and by module i mean: forum, blog, chat, ticket support system, products, etc) and last but not least API. In my currently rather narrow understanding, the folder structure could be:
Application
Administration
Controllers
Views
Templates
Models
Domain Business Logic
Data Access & Storage
Services
Modules
Public
Controllers
Views
Templates
Models
Domain Business Logic
Data Access & Storage
Services
Modules
API
What do you guys think? Does this look okay? I really want to know if I understand this correctly.
Aucun commentaire:
Enregistrer un commentaire