how many types of mvc in php?
There are two type of MVC Framework In php
- Convention Based MVC
- Configuration Based MVC
Convention Based MVC
As the name suggest, in this type of MVC we need to follow some predefined conventions in order to have it in working mode. This conventions are different from frameworks to frameworks. There are numbers of frameworks out there which follows convention based approach. Some of those frameworks are as below:
Configuration Based MVC
Unlike Conventional based MVC, in Configuration based MVC we have full control over file name and class name we use. We can explicitly define which files to load for particular model and which class to find from that file.
Magento is the best example of Configuration based MVC architecture.