public function getTemplatePath($action = '') { if (empty($this->template)) { $path = application::template($action); return $path; } return $this->template; }
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; }