Class BasePath

Summary

Fully Qualified Name: Zend\View\Helper\BasePath
Extends: AbstractHelper

Description

Helper for retrieving the base path.

Methods

Name Description Defined By
__invoke() Returns site's base path, or file with base path prepended. BasePath
getView() Get the view object AbstractHelper
setBasePath() Set the base path. BasePath
setView() Set the View object AbstractHelper

Method Details

__invoke()

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

$file is appended to the base path for simplicity.

Parameter Name Type Description
$file string|null

Returns: string

getView()

Get the view object

Returns: null|\Renderer

setBasePath()

Set the base path.

Parameter Name Type Description
$basePath string

Returns: self

setView()

Set the View object

Parameter Name Type Description
$view \Renderer

Returns: \AbstractHelper

Top