pmvc-plugin/controller

PMVC Controller

0.11.1 2023-09-09 06:57 UTC

This package is auto-updated.

Last update: 2024-02-09 07:54:34 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

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