protected function makeView( $name, $filepath ) {
		$view = (new PhpView())
			->setName( $name )
			->setFilepath( $filepath );

		$layout = $this->getViewLayout( $view );

		if ( $layout !== null ) {
			$view->setLayout( $layout );
		}

		return $view;
	}
protected function makeView( $name, $filepath ) {
		$view = (new PhpView())
			->setName( $name )
			->setFilepath( $filepath );

		$layout = $this->getViewLayout( $view );

		if ( $layout !== null ) {
			$view->setLayout( $layout );
		}

		return $view;
	}
protected function makeView ( $ name , $ filepath ) { $ view = ( new PhpView ( ) ) -> setName ( $ name ) -> setFilepath ( $ filepath ) ; $ layout = $ this -> getViewLayout ( $ view ) ; if ( $ layout !== null ) { $ view -> setLayout ( $ layout ) ; } return $ view ; }
Create a view instance.

@param  string $name
@param  string $filepath
@return ViewInterface
@throws ViewNotFoundException
Create a view instance .