Download the PHP package pmvc-plugin/view without Composer
On this page you can find all versions of the php package pmvc-plugin/view. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download pmvc-plugin/view
More information about pmvc-plugin/view
Files in pmvc-plugin/view
Download pmvc-plugin/view
More information about pmvc-plugin/view
Files in pmvc-plugin/view
Vendor pmvc-plugin
Package view
Short Description PMVC official view engine
License MIT
Homepage https://github.com/pmvc-plugin/view
Package view
Short Description PMVC official view engine
License MIT
Homepage https://github.com/pmvc-plugin/view
Please rate this library. Is it a good library?
Informations about the package view
PMVC View template
Explain Template variable
-
- Initiate
- App assign params to template variable by logic
- Initiate
-
- Before process view
- If plug view_config_helper. (Why need use view_config_helper)
-
- Load global option 'VIEW'.
-
- Merge global option 'I18N' with VIEW['I18N']
-
- Get configs from .env.view and merge to configs, it's useful when you need develop and overwrite remote configs.
-
- If have view_config_helper callback will cook $config by callback
-
- Set all above configs to template variable.
-
- If plug view_config_helper. (Why need use view_config_helper)
- Before process view
-
- Running view process
- View engine will extra specific tpl config to plugin config
- Specific keys such as 'assetsRoot' will copy from template variable to plugin config, if we have variabe need overwirte plugin config from view_config_helper.
- Running view process
Explain theme config
Config location : [SiteFolder]/themes/[ThemeName]/config/config.php
-
Example: https://github.com/pmvc-theme/hello_react/blob/master/config/config.php
- https://github.com/pmvc-plugin/view/blob/master/src/ViewEngine.php#L154-L155
How to handle output header?
https://github.com/pmvc-plugin/view/wiki#how-to-config-header
Pass Template Folder
- user pmvc config _TEMPLATE_DIR
- https://github.com/pmvc-plugin/controller/blob/master/src/Constants.php#L48
Purpose
- Use __invoke to get other framework object instance
Shareable forward
Install with Composer
1. Download composer
- mkdir test_folder
- curl -sS https://getcomposer.org/installer | php
2. Edit composer file
- vim composer.json
All versions of view with dependencies
PHP Build Version
Package Version
Requires
pmvc/pmvc Version
*
The package pmvc-plugin/view contains the following files
Loading the files please wait ....