Zend Framework  3.0
Public Member Functions | Protected Attributes | List of all members
BasePath Class Reference

Helper for retrieving the base path. More...

Public Member Functions

 __invoke ($file=null)
 Returns site's base path, or file with base path prepended.
 
 setBasePath ($basePath)
 Set the base path.
 
- Public Member Functions inherited from AbstractHelper
 setView (Renderer $view)
 Set the View object.
 
 getView ()
 Get the view object.
 

Protected Attributes

 $basePath
 
- Protected Attributes inherited from AbstractHelper
 $view = null
 

Detailed Description

Helper for retrieving the base path.

Member Function Documentation

__invoke (   $file = null)

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

$file is appended to the base path for simplicity.

Parameters
string | null$file
Exceptions
Exception\RuntimeException
Returns
string
setBasePath (   $basePath)

Set the base path.

Parameters
string$basePath
Returns
self

Member Data Documentation

$basePath
protected