コード例 #1
0
ファイル: Repository.php プロジェクト: sonus/themes
 /**
  * Register view location of theme.
  *
  * @param null $theme
  */
 public function registerViewLocation($theme = null)
 {
     if (is_null($theme)) {
         $theme = $this->getCurrent();
     }
     $this->views->addLocation($this->getPath() . '/' . $theme . '/views');
 }
コード例 #2
0
ファイル: _ide_helper.php プロジェクト: satriashp/tour
 /**
  * Add a location to the array of view locations.
  *
  * @param string $location
  * @return void 
  * @static 
  */
 public static function addLocation($location)
 {
     \Illuminate\View\Factory::addLocation($location);
 }