承接 pmvc-plugin/view 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

pmvc-plugin/view

最新稳定版本:0.5.6

Composer 安装命令:

composer require pmvc-plugin/view

包简介

PMVC official view engine

README 文档

README

Latest Stable Version Latest Unstable Version CircleCI License Total Downloads

PMVC View template

Explain Template variable

    1. Initiate
    • App assign params to template variable by logic
    1. Before process view
    • If plug view_config_helper. (Why need use view_config_helper)
        1. Load global option 'VIEW'.
        1. Merge global option 'I18N' with VIEW['I18N']
        1. Get configs from .env.view and merge to configs, it's useful when you need develop and overwrite remote configs.
        1. If have view_config_helper callback will cook $config by callback
        1. Set all above configs to template variable.
    1. 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.

Explain theme config

Config location : [SiteFolder]/themes/[ThemeName]/config/config.php

${_INIT_CONFIG}=[
  'backend' => [], // will append with view plugin and use in backend.
  'view' => [], // will append to front-end view variable, and could see it in browser (JS) level.
  'compile' => [], // use webpack compile only
];

How to handle output header?

https://github.com/pmvc-plugin/view/wiki#how-to-config-header

Pass Template Folder

Purpose

Shareable forward

Install with Composer

1. Download composer

2. Edit composer file

  • vim composer.json
{
    "require": {
        "pmvc-plugin/view": "dev-master"
    }
}

统计信息

  • 总下载量: 3.14k
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 2
  • 依赖项目数: 8
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 1
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2015-05-14

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固