Helper for retrieving the base path.

package Default
inherited_from \Zend\View\Helper\AbstractHelper

 Methods

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

__invoke(string|null $file = null) : 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\HelperInterface::getView()

Returns

null\Zend\View\Renderer\RendererInterface

Set the base path.

setBasePath(string $basePath) : \Zend\View\Helper\BasePath
fluent This method is part of a fluent interface and will return the same instance

Parameters

$basePath

string

Returns

\Zend\View\Helper\BasePath

Set the View object

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

Parameters

$view

\Zend\View\Renderer\RendererInterface

Returns

\Zend\View\Helper\AbstractHelper

 Properties

 

Base path

$basePath : string

Default

 

View object instance

$view : \Zend\View\Renderer\RendererInterface

Default

null