PHP code example of echo511 / gaufrette
1. Go to this page and download the library: Download echo511/gaufrette 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/ */
echo511 / gaufrette example snippets
use Nette\Application\UI\Presenter;
use Echo511\Plupload\Entity\UploadQueue;
class HomePresenter extends Presenter
{
/** @var AssetMacro @inject */
public $assetMacro;
public function createTemplate()
{
$template = parent::createTemplate();
$this->assetMacro->register($template, 'asset', MyCompilerExtension::class);
return $template;
}
}