Ejemplo n.º 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');
 }
Ejemplo n.º 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);
 }