/** * Returns the Template Name * Maps the action name to a template. * * @return string the templateName as String */ public function getTemplateName() { // if the templateName was not set manually, we construct it from module/action infos if (empty($this->template)) { // construct template name $template = TargetRoute::getMethod() . '.tpl'; $this->setTemplate($template); } return $this->template; }
/** * Creates a cache_id. * * @return string Returns md5 string as cache_id. */ public static function createCacheId() { $module = TargetRoute::getModule(); $controller = TargetRoute::getController(); $action = TargetRoute::getMethod(); return md5(strtolower($module . $controller . $action)); }