定制 ldrahnik/view-keeper 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

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

ldrahnik/view-keeper

最新稳定版本:v3.0

Composer 安装命令:

composer require ldrahnik/view-keeper

包简介

Keeper of app views.

README 文档

README

Build Status Latest stable Downloads total

Keeper of app views.

Benefits

  • View-keeper is easy way to separate files from logic (e.g. separate to repositories, it has benefits, rights etc.)
  • Change location of files is now easier than ever before

Reference

Requirements

ldrahnik/view-keeper requires PHP 5.4 or higher.

Installation

Install keeper to your project using Composer:

$ composer require ldrahnik/view-keeper

Usage

Register extension in config file

extensions:
	keeper: ViewKeeper\DI\ViewKeeperExtension

keeper:
	controls: foo/controls/<name>/<view>
	files: foo/<name>/<view>

Is able to set up path via these patterns

	<module>		# <Backend>Module
	<name>			# <Backend>Module<:Base>Presenter
					# <Base>Presenter
					# <UserAdd>
	<view> 			# <default>.latte

Suffix is not configurable (still you can change that as param of getView method) - always will be in the end over dot

And inject

	/** @var \ViewKeeper\ViewKeeper @inject */
	private $keeper;

Summary

View keeper tries to be ultra-light package and simple to use. You will love it :)

For more information about path enrolment please check url-matcher

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: BSD-3-Clause
  • 更新时间: 2015-01-31