PHP code example of davidzadrazil / parameters
1. Go to this page and download the library: Download davidzadrazil/parameters 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/ */
davidzadrazil / parameters example snippets
namespace App\Presenters;
use Nette;
use WebChemistry\Parameters\Traits\TPresenter;
class BasePresenter extends Nette\Application\UI\Presenter {
use TPresenter;
// Použití v presenteru přes $this->parametersProvider
}
$parametersProvider->myVariable = 'new value';
$parametersProvider->merge(); // Invalidace cache a provede změny v databazi