/** * Setup Avalon templating to use the extended PHP engine. */ protected function setupViewEngine() { $engine = new PhpExtended(); $engine->escapeVariables = false; View::setEngine($engine); View::addPath($this->path . '/views'); }
/** * Setup the view class. */ protected function configureTemplating() { View::setEngine(new \Avalon\Templating\Engines\PhpEngine()); View::addPath("{$this->path}/views"); }
/** * Configure templating. */ protected function configureTemplating() { $engine = new PhpExtended(); $engine->escapeVariables = false; View::setEngine($engine); View::addPath("{$this->path}/views"); View::loadFunctions(); }
protected function configureTemplating() { View::setEngine(new PhpExtended()); View::addPath(dirname(__DIR__) . '/views'); }