Recommend this page to a friend! |
Classes of Saro Carvello | PHP Web MVC Framework | wiki/Examples.md | Download |
|
![]() Subsystem examplesInto WebMVC package you will find different examples of source code located under the
Below is the directory/files structure:
You can run a demo from here ConclusionAs we just described in the previous page a subsystem, in WebMVC, is identified at two levels:
> So, for each subsystem, WebMVC uses a directory for physically storing of all its classes and uses a namespace to > refer each class when it needs to be instantiated and executed; directories and namespaces must have identical names > that are conventionally written in lowercase. > In conclusion, you need to take in mind that there are two decomposition levels when writing code with WebMVC: > * First is the MVC decomposition (directories: controllers, models, views and templates) > * Second is provided by the application subsystems, that is a folders/files structure you need to replicate within the
> Inside all levels live WebMVC assemblies. An assembly is represented by a logical name you need to choose to identify > the aggregation of the classes for Model, View, and, Controller and also for the HTML. Then when you coding classes for > Model, View, and, Controller and also for the HTML you can use the same logical name for storing these files. |