So I have a PHP application I’m developing that’s nicely name-spaced as such:
src/
VendorName/
Ecommerce/
Products/
Controllers/
ProductsController.php
Models/
Product.php
Views/
index.html
view.html
Straightforward. My project is an e-commerce website, with functionality broken down into sub-modules like Products
, Cart
, Discounts
etc. Each module then has its own controllers, models, and HTML view files.
My question is, although modules have their own views, where would I put “global” template files, like a common layout?