pmvc-plugin/controller

PMVC Controller

0.10.0 2021-11-12 18:04 UTC

This package is auto-updated.

Last update: 2021-11-17 21:17:13 UTC


README

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

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