PHP code example of webchemistry / parameters

1. Go to this page and download the library: Download webchemistry/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/ */

    

webchemistry / 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