pmvc-plugin / controller
PMVC Controller
Installs: 8 174
Dependents: 15
Suggesters: 0
Security: 0
Stars: 0
Watchers: 2
Forks: 0
Open Issues: 0
Requires
- pmvc/pmvc: *
Requires (Dev)
README
PMVC Controller
- A simple MVC for unidirectional dataflow architecture.
- More information https://github.com/pmvc/pmvc
Explain flow
controller -> plugapp -> process -> execute -> processForm -> _processValidate -> _processAction -> processForward -> _finish
Explain App Folder
Folders hierarchy
- Site *Folder*
-- Apps *Folder*
--- App
How to get (folders)?
- Site Folder
\PMVC\plug('controller')->getAppsParent()
- Apps Folder
\PMVC\plug('controller')->getAppsFolder()
- App
\PMVC\plug('controller')->getApp()
APP customize view and template
- View
- view_engine_[app]=[html|json|react|...]
- Template
- template_dir_[app]=[forder path]
Install with Composer
CLICK TO SEE
1. Download composer
- mkdir test_folder
- curl -sS https://getcomposer.org/installer | php
2. Install by composer.json or use command-line directly
2.1 Install by composer.json
- vim composer.json
{
"require": {
"pmvc-plugin/controller": "dev-master"
}
}
- php composer.phar install
2.2 Or use composer command-line
- php composer.phar require pmvc-plugin/controller
or
- composer require pmvc-plugin/controller