コード例 #1
0
ファイル: Core.php プロジェクト: kmvan/poiauthor
 public function __construct($dir)
 {
     static::$dir = $dir;
     static::$basename = basename($dir);
 }
コード例 #2
0
ファイル: TemplateWrapper.php プロジェクト: wells5609/wp-app
 /**
  * Sets the main template for the current request.
  * 
  * @param string $template
  */
 public static function setMainTemplate($template)
 {
     static::$main = $template;
     $basename = basename($template, '.php');
     static::$basename = $basename === 'index' ? false : $basename;
 }