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
- Add this bundle to your project with composer:
composer.phar require renus/parameters-editor:1.0.x-dev
- 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
其他信息
- 授权协议: MIT
- 更新时间: 2016-08-21