Пример #1
0
 protected function get_path()
 {
     $paths = array(CMS::current_component_dir('app/views'), CMS::current_component_dir('views'));
     return Templates::get_path($this->name, $this->extension, $paths);
 }
Пример #2
0
 /**
  * Возвращает путь до шаблона
  *
  * @return string
  */
 protected function get_path()
 {
     return Templates::get_path($this->name, $this->extension);
 }
Пример #3
0
 /**
  * @param string $name
  */
 static function view($name)
 {
     return Templates::get_path($name);
 }