renus / parameters-editor
Symfony 2 bundle to edit parameters.yml symfony file
Installs: 1 278
Dependents: 0
Suggesters: 0
Security: 0
Stars: 1
Watchers: 1
Forks: 0
Open Issues: 1
Type:symfony-bundle
This package is not auto-updated.
Last update: 2025-01-04 20:42:02 UTC
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')) %}