Helper for retrieving the BaseUrl

package Zend_View
subpackage Helper
copyright Copyright (c) 2005-2015 Zend Technologies USA Inc. (http://www.zend.com)
license New BSD License
inherited_from \Zend_View_Helper_Abstract

 Methods

Returns site's base url, or file with base url prepended

baseUrl(string|null $file = null) : string

$file is appended to the base url for simplicity

Parameters

$file

stringnull

Returns

string

Strategy pattern: currently unutilized

direct() : void
Inherited
inherited_from \Zend_View_Helper_Interface::direct()

Get BaseUrl

getBaseUrl() : string

Returns

string

Set BaseUrl

setBaseUrl(string $base) : \Zend_View_Helper_BaseUrl

Parameters

$base

string

Returns

\Zend_View_Helper_BaseUrl

Set the View object

setView(\Zend_View_Interface $view) : \Zend_View_Helper_Abstract
Inherited
inherited_from \Zend_View_Helper_Interface::setView()

Parameters

$view

\Zend_View_Interface

Returns

\Zend_View_Helper_Abstract

Remove Script filename from baseurl

_removeScriptName(string $url) : string

Parameters

$url

string

Returns

string

 Properties

 

View object

$view : \Zend_View_Interface

Default

null
 

BaseUrl

$_baseUrl : string

Default