hrevert/ht-settings-module 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

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

hrevert/ht-settings-module

Composer 安装命令:

composer require hrevert/ht-settings-module

包简介

Flexible Settings module for Zend Framework 2 applications

README 文档

README

Master Branch Build Status Latest Stable Version Latest Unstable Version Total Downloads Scrutinizer Code Quality Code Coverage

HtSettingsModule is a module for adding settings support to your Zend Framework 2 application. This module does not provide any GUI for settings. It just provides a way for easy persistence of application settings.

Getting started guide

Storing settings
// From ServiceManager
$this->getServiceLocator()->get('HtSettingsManager')->save($settingsEntity, 'settings_namespace');

// From Controller
$this->settings()->save($settingsEntity, 'settings_namespace');
Retrieving settings
// From Controller
$settingsEntity = $this->settings('settings_namespace');

// From view templates
$settingsEntity = $this->settings('settings_namespace');

// From ServiceLocatorAware classes
$settingsEntity = $this->getServiceLocator()->get('HtSettingsManager')->getSettings('settings_namespace');

Installation

  • Add "hrevert/ht-settings-module": "0.1.*" to composer.json and run php composer.phar update
  • Register HtSettingsModule as module in config/application.config.php
  • Copy the file located in vendor/hrevert/ht-settings-module/config/ht-settings-module.global.php to config/autoload and change the values as you wish
  • Read this for setting up a storage adapter

Docs

The official documentation of HtSettingsModule is available in the /docs folder. Please read the quickstart guide to quickly get your hands dirty with this module.

Acknowledgements

HtSettingsModule is inspired by SyliusSettingsBundle.

统计信息

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

GitHub 信息

  • Stars: 3
  • Watchers: 4
  • Forks: 1
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2014-04-16

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固