renus/parameters-editor 问题修复 & 功能扩展

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

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

renus/parameters-editor

Composer 安装命令:

composer require renus/parameters-editor

包简介

Symfony 2 bundle to edit parameters.yml symfony file

README 文档

README

Symfony 2 bundle to edit parameters.yml symfony 2 or symfony 3 file

To use RenusParametersEditorBundle in your project add it via composer

Installation

installation

  1. Add this bundle to your project with composer:
composer.phar require renus/parameters-editor:1.0.x-dev
  1. Register the bundle
<?php
// app/AppKernel.php
public function registerBundles()
{
    $bundles = array(
        // ...
        new \Renus\ParametersEditorBundle\RenusParametersEditorBundle(),
    );
    // ...
}

#configuration 

##application twitter

first you must create an twitter application  on https://apps.twitter.com/ ,and create a token (read permission)


##parameters

### 1.config file
you can configure the bundle parameters in app/config/config.yml, the  parameters can be added like this :

```yml
# app/config/config.yml
renus_parameters_editor:
    all_parameters: false 
    default_keyword: editable
  • all_parameters: it's a boolean (default false) when it is true, you can see all the parameters in parameters.yml file else you see only the parameters who are prefixed by the "keyword" (default: editable, ex: editable.email).

  • default_keyword: the keyword who prefix the paramters who can be edit (default: editable)

2. routing file

# app/config/routing.yml
renus_parameters_editor:
    resource: "@RenusParametersEditorBundle/Resources/config/routing.yml"
    prefix:   /administration/config/editor/

You must protect this url with your firewall

#Usage

##twig usage:

just add this render command in your twig template :

{% render(path('renus_parameters_editor_homepage')) %}

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2016-08-21

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固