PHP code example of pesto / yii2-variable
1. Go to this page and download the library: Download pesto/yii2-variable 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/ */
pesto / yii2-variable example snippets
...
'components' => [
'variable' => [
'class' => 'pesto\variable\Variable',
]
...
],
...
Yii::$app->variable->set(<name>, <value>)
Yii::$app->variable->get(<name>, <default_value>)
$ php composer.phar