PHP code example of flame / thumbnail-helper
1. Go to this page and download the library: Download flame/thumbnail-helper 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/ */
flame / thumbnail-helper example snippets
\Flame\Thumb\DI\ThumbExtension::register($configurator);
/**
* Base presenter for all application presenters.
*/
abstract class BasePresenter extends Presenter
{
/**
* @param null $class
* @return \Nette\Templating\ITemplate
*/
protected function createTemplate($class = null)
{
$template = parent::createTemplate($class);
/** @var \Flame\Thumb\IRegister $thumb */
$thumb = $this->context->getByType('Flame\Thumb\IRegister');
$thumb->register($template);
return $template;
}
}