Exemplo n.º 1
0
Arquivo: Mapper.php Projeto: ksst/kf
 /**
  * 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;
 }
Exemplo n.º 2
0
Arquivo: Smarty.php Projeto: ksst/kf
 /**
  * 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));
 }