Ejemplo n.º 1
0
 public function getTemplatePath($action = '')
 {
     if (empty($this->template)) {
         $path = application::template($action);
         return $path;
     }
     return $this->template;
 }
Ejemplo n.º 2
0
 public function template($name = '')
 {
     if (file::exists($name)) {
         return $name;
     }
     $template = theme::template($name);
     if (file::exists($template)) {
         return $template;
     }
     $template = application::template($name);
     return $template;
 }