示例#1
0
 /**
  * set_templates
  * Interface for setting templates
  *
  * @param mixed $list Template (or array of templates, in order of preference) to use for page render
  * @return void
  */
 public static function set_templates($list, $location = false)
 {
     self::$_templates = $list;
     self::$_template_location = $location ? $location : Path::assemble(BASE_PATH, Config::getTemplatesPath(), 'templates');
 }
示例#2
0
文件: view.php 项目: nob/joi
 /**
  * set_templates
  * Interface for setting templates
  *
  * @param mixed  $list  Template (or array of templates, in order of preference) to use for page render
  * @return void
  */
 public static function set_templates($list)
 {
     self::$_templates = $list;
 }