/** * @see TemplateEngineInterface::loadTemplateExtended */ public function loadTemplateExtended(Template $template, &$globals) { $params = $template->getLocals(); if (!empty($params['Presenter'])) { $template->setPresenter($params['Presenter']); } if (!empty($params['CacheTime'])) { $template->setCacheTime((int) $params['CacheTime']); } else { $template->setCacheTime(300); } if ($template->getCacheTime() > 0 && (empty($params['NoCache']) || StringUtils::strToBool($params['NoCache']) == false)) { $template->setCacheable(true); } return $template; }