Helper for retrieving the base path.

 Methods

Returns site's base path, or file with base path prepended.

__invoke(string | null $file) : string

$file is appended to the base path for simplicity.

Parameters

$file

stringnull

Exceptions

\Zend\View\Exception\RuntimeException

Returns

string

Get the view object

getView() : null | \Zend\View\Renderer\RendererInterface
Inherited

inherited_from \Zend\View\Helper\AbstractHelper::getView()

Returns

Set the base path.

setBasePath(string $basePath) : \Zend\View\Helper\self

Parameters

$basePath

string

Returns

\Zend\View\Helper\self

Set the View object

setView(\Zend\View\Renderer\RendererInterface $view) : \Zend\View\Helper\AbstractHelper
Inherited

inherited_from \Zend\View\Helper\AbstractHelper::setView()

Parameters

Returns

 Properties

 

Base path

$basePath : string

 

View object instance

$view : \Zend\View\Renderer\RendererInterface
Inherited

inherited_from \Zend\View\Helper\AbstractHelper::$$view