コード例 #1
0
ファイル: Theme.php プロジェクト: skelpo/framework
 /**
  * Returns the paths to this theme.
  *
  * @return string[]
  */
 public function getPaths()
 {
     $paths = array();
     $baseDir = $this->kernel->getThemeDir();
     $themes = $this->getThemeHierachy();
     foreach ($themes as $theme) {
         $paths[] = $baseDir . $theme . "/";
     }
     return $paths;
 }
コード例 #2
0
ファイル: Framework.php プロジェクト: skelpo/framework
 /**
  * Returns the theme dir.
  *
  * @return string
  */
 public function getThemeDir()
 {
     return $this->kernel->getThemeDir();
 }