- A simple MVC for unidirectional dataflow architecture.
- More information https://github.com/pmvc/pmvc
controller -> plugapp -> process -> execute -> processForm -> _processValidate -> _processAction -> processForward -> _finish
- Site *Folder*
-- Apps *Folder*
--- App
- Site Folder
\PMVC\plug('controller')->getAppsParent()
- Apps Folder
\PMVC\plug('controller')->getAppsFolder()
- App
\PMVC\plug('controller')->getApp()
- View
- view_engine_[app]=[html|json|react|...]
- Template
- template_dir_[app]=[forder path]
CLICK TO SEE
- mkdir test_folder
- curl -sS https://getcomposer.org/installer | php
- vim composer.json
{
"require": {
"pmvc-plugin/controller": "dev-master"
}
}
- php composer.phar install
- php composer.phar require pmvc-plugin/controller
or
- composer require pmvc-plugin/controller