Structure
project
└ bundles
├ controllers
├ models
└ views
A page is made up of two parts.
The first is the page, the chassies, the structure that will match a file inside bundles/controllers
. For example, the Login page will have a Login.php
file that will contain a class that will handle the requests of the http://mywebsite/login
page.
The second part will be the content of the page, for example, always for the login page, the input form that holds the two inputs: username and password. Clearly a page can contain more content.
The content can be divided into two parts: the graphical interface that is almost entirely made up of the html and the part of php code that is used to customize it. The graphical interface will be contained in bundles/views
while the part of the code will be contained in bundles/models
.