PHP code example of renus / parameters-editor
1. Go to this page and download the library: Download renus/parameters-editor library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
renus / parameters-editor example snippets
// 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 :