Skip to content

pmvc-plugin/controller

Repository files navigation

Latest Stable Version Latest Unstable Version CircleCI StyleCI Coverage Status License Total Downloads

PMVC Controller

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

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