Exemplo n.º 1
0
 /**
  * Add a new namespace to the loader.
  *
  * @param string $namespace
  * @param string|array $hints
  * @return void 
  * @static 
  */
 public static function addNamespace($namespace, $hints)
 {
     \Illuminate\View\Environment::addNamespace($namespace, $hints);
 }
Exemplo n.º 2
0
 /**
  * Setup the pagination environment.
  *
  * @return void
  */
 protected function setupPaginationEnvironment()
 {
     $this->view->addNamespace('pagination', __DIR__ . '/views');
 }
Exemplo n.º 3
0
 /**
  * Generate the view namespace and return the true path to a theme view
  *
  * @param string $path
  * @return string
  */
 private function generateNamespace($path = null, $theme = false)
 {
     $namespace = empty($theme) ? static::$namespace : static::$namespace . '-' . $theme;
     $this->view->addNamespace($namespace, $this->getCurrentPath($theme));
     return $namespace . '::' . $path;
 }