public function create()
 {
     $service = new Latte\Engine();
     $service->setTempDirectory('/home/fuca/Projects/www/sportsclub/tests/tmp/cache/latte');
     $service->setAutoRefresh(FALSE);
     $service->setContentType('html');
     Kdyby\Translation\Latte\TranslateMacros::install($service->getCompiler());
     $service->addFilter('translate', array($this->container->getService('translation.helpers'), 'translate'));
     $service->addFilter('getTranslator', array($this->container->getService('translation.helpers'), 'getTranslator'));
     $service->onCompile = $this->container->getService('events.manager')->createEvent(array('Latte\\Engine', 'onCompile'), $service->onCompile);
     return $service;
 }
 public function create()
 {
     $service = new Latte\Engine();
     $service->setTempDirectory('E:\\xampp\\htdocs\\pskeleton\\tests/../temp/cache/latte');
     $service->setAutoRefresh(FALSE);
     $service->setContentType('html');
     Nette\Utils\Html::$xhtml = FALSE;
     return $service;
 }
 public function create()
 {
     $service = new Latte\Engine();
     $service->setTempDirectory('/home/richmond/vhosts/nette-test/sandbox/app/../temp/cache/latte');
     $service->setAutoRefresh(FALSE);
     $service->setContentType('html');
     Nette\Utils\Html::$xhtml = FALSE;
     $service->onCompile = $this->container->getService('events.manager')->createEvent(array('Latte\\Engine', 'onCompile'), $service->onCompile, NULL, FALSE);
     return $service;
 }
 public function create()
 {
     $service = new Latte\Engine();
     $service->setTempDirectory('C:\\Users\\Raiper34\\Desktop\\server\\root\\nette\\app/../temp/cache/latte');
     $service->setAutoRefresh(TRUE);
     $service->setContentType('html');
     Nette\Utils\Html::$xhtml = FALSE;
     return $service;
 }
 public function create()
 {
     $service = new Latte\Engine();
     $service->setTempDirectory('/home/www/pps-eu.cz/www/asystem.pps-eu.cz/app/../temp/cache/latte');
     $service->setAutoRefresh(FALSE);
     $service->setContentType('html');
     return $service;
 }
 public function create()
 {
     $service = new Latte\Engine();
     $service->setTempDirectory('/www/plavbyolomouc.cz/rezervace.plavbyolomouc.cz/app/../temp/cache/latte');
     $service->setAutoRefresh(TRUE);
     $service->setContentType('html');
     Nette\Utils\Html::$xhtml = FALSE;
     return $service;
 }
 public function create()
 {
     $service = new Latte\Engine();
     $service->setTempDirectory('C:\\xampp\\htdocs\\TransportCompany\\app/../temp/cache/latte');
     $service->setAutoRefresh(TRUE);
     $service->setContentType('html');
     Nette\Utils\Html::$xhtml = FALSE;
     return $service;
 }
 public function create()
 {
     $service = new Latte\Engine();
     $service->setTempDirectory('/Applications/MAMP/htdocs/orbinet/app/../temp/cache/latte');
     $service->setAutoRefresh(FALSE);
     $service->setContentType('html');
     Nette\Utils\Html::$xhtml = FALSE;
     return $service;
 }
 public function create()
 {
     $service = new Latte\Engine();
     $service->setTempDirectory('/users/mauricioschmitz/Sites/zf2-tutorial/public/mauricioschmitz/php/temp/cache/latte');
     $service->setAutoRefresh(TRUE);
     $service->setContentType('html');
     return $service;
 }
 public function create()
 {
     $service = new Latte\Engine();
     $service->setTempDirectory('C:\\Program Files (x86)\\EasyPHP-DevServer-13.1VC11\\data\\localweb\\projects\\vcelyweb\\app/../temp/cache/latte');
     $service->setAutoRefresh(TRUE);
     $service->setContentType('html');
     return $service;
 }
 public function create()
 {
     $service = new Latte\Engine();
     $service->setTempDirectory('/www/jvitasek.cz/priority.jvitasek.cz/app/../temp/cache/latte');
     $service->setAutoRefresh(FALSE);
     $service->setContentType('html');
     Nette\Utils\Html::$xhtml = FALSE;
     return $service;
 }
 public function create()
 {
     $service = new Latte\Engine();
     $service->setTempDirectory('C:\\Users\\Hadi.k\\Dropbox\\vyvojraskaSekce\\WebDesign\\BrowserGameLikeRust\\src\\buildModule\\app/../temp/cache/latte');
     $service->setAutoRefresh(TRUE);
     $service->setContentType('html');
     Nette\Utils\Html::$xhtml = FALSE;
     return $service;
 }
 public function create()
 {
     $service = new Latte\Engine();
     $service->setTempDirectory('/home/vencs88/public_html/import_time/app/../temp/cache/latte');
     $service->setAutoRefresh(FALSE);
     $service->setContentType('html');
     Nette\Utils\Html::$xhtml = FALSE;
     return $service;
 }
 public function create()
 {
     $service = new Latte\Engine();
     $service->setTempDirectory('C:\\Users\\prcharom\\Desktop\\EasyPHP-DevServer-14.1VC9\\data\\localweb\\nastenka\\app/../temp/cache/latte');
     $service->setAutoRefresh(TRUE);
     $service->setContentType('html');
     Nette\Utils\Html::$xhtml = FALSE;
     return $service;
 }
 public function create()
 {
     $service = new Latte\Engine();
     $service->setTempDirectory('/var/www/fakturace/app/../temp/cache/latte');
     $service->setAutoRefresh(TRUE);
     $service->setContentType('html');
     return $service;
 }
Example #16
0
 public function create()
 {
     $service = new Latte\Engine();
     $service->setTempDirectory('/home/www/Git/nette/app/../temp/cache/latte');
     $service->setAutoRefresh(TRUE);
     $service->setContentType('html');
     Nette\Utils\Html::$xhtml = FALSE;
     return $service;
 }
 public function create()
 {
     $service = new Latte\Engine();
     $service->setTempDirectory('C:\\xampp\\htdocs\\MyWallet\\app/../temp/cache/latte');
     $service->setAutoRefresh(TRUE);
     $service->setContentType('html');
     return $service;
 }
 public function create()
 {
     $service = new Latte\Engine();
     $service->setTempDirectory('C:\\wamp\\www\\rocnikovy_projekt\\app/../temp/cache/latte');
     $service->setAutoRefresh(TRUE);
     $service->setContentType('html');
     return $service;
 }
Example #19
0
use Zend\ServiceManager\ServiceLocatorInterface;
return array('factories' => array('Zf2Latte\\LatteStrategy' => function (ServiceLocatorInterface $sl) {
    return new \Zf2Latte\LatteStrategy($sl->get('Zf2Latte\\LatteRenderer'), $sl->get('Zf2Latte\\LatteResolver'), $sl->get('Zf2Latte\\LatteConfig'));
}, 'Zf2Latte\\LatteRenderer' => function (ServiceLocatorInterface $sl) {
    return new \Zf2Latte\LatteRenderer($sl->get('Latte\\Engine'), $sl->get('Zf2Latte\\LatteResolver'), $sl->get('Zf2Latte\\ZendHelpers'));
}, 'Zf2Latte\\ZendHelpers' => function (ServiceLocatorInterface $sl) {
    return new \Zf2Latte\ZendHelpers($sl->get('ViewHelperManager'));
}, 'Zf2Latte\\LatteResolver' => function (ServiceLocatorInterface $sl) {
    $config = $sl->get('config');
    return new \Zf2Latte\LatteResolver($config['view_manager'], $sl->get('Zf2Latte\\LatteConfig'));
}, 'Zf2Latte\\LatteConfig' => function (ServiceLocatorInterface $sl) {
    $config = $sl->get('config');
    $latteConfig = new \Zf2Latte\LatteConfig();
    foreach ($config['zf2_latte'] as $name => $value) {
        $latteConfig->{$name} = $value;
    }
    return $latteConfig;
}, 'Latte\\Engine' => function (ServiceLocatorInterface $sl) {
    /** @var \Zf2Latte\LatteConfig $config */
    $config = $sl->get('Zf2Latte\\LatteConfig');
    $engine = new \Latte\Engine();
    $engine->addFilter('translate', array($sl->get($config->translator_callback[0]), $config->translator_callback[1]));
    $engine->onCompile[] = function ($engine) {
        $set = \Latte\Macros\MacroSet::install($engine->getCompiler());
        $set->addMacro('href', NULL, NULL, 'echo \' href="\' . $helper->url(%node.args) . \'"\'');
    };
    $engine->setTempDirectory($config->temp_directory);
    $engine->setAutoRefresh($config->auto_refresh);
    return $engine;
}));