src/Theme.php
public function loadPartial($view, $partialDir, $args)
    {
        $path = $partialDir.'.'.$view;

        if (! $this->view->exists($path)) {
            throw new UnknownPartialFileException("Partial view [$view] not found.");
        }

        $partial = $this->view->make($path, $args)->render();
        $this->regions[$view] = $partial;

        return $this->regions[$view];
    }
public function loadPartial($view, $partialDir, $args)
    {
        $path = $partialDir.'.'.$view;

        if (! $this->view->exists($path)) {
            throw new UnknownPartialFileException("Partial view [$view] not found.");
        }

        $partial = $this->view->make($path, $args)->render();
        $this->regions[$view] = $partial;

        return $this->regions[$view];
    }
public function loadPartial ( $ view , $ partialDir , $ args ) { $ path = $ partialDir . '.' . $ view ; if ( ! $ this -> view -> exists ( $ path ) ) { throw new UnknownPartialFileException ( "Partial view [$view] not found." ) ; } $ partial = $ this -> view -> make ( $ path , $ args ) -> render ( ) ; $ this -> regions [ $ view ] = $ partial ; return $ this -> regions [ $ view ] ; }
Load a partial

@param  string $view
@param  string $partialDir
@param  array  $args
@throws UnknownPartialFileException
@return mixed
Load a partial