Beispiel #1
0
 /**
  * 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');
 }
Beispiel #2
0
 /**
  * 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);
 }