Helper for returning the current server URL (optionally with request URI)
category | Zend |
---|---|
package | Zend_View |
subpackage | Helper |
copyright | Copyright (c) 2005-2015 Zend Technologies USA Inc. (http://www.zend.com) |
license | New BSD License |
__construct() : void
getHost() : string
string
hostgetScheme() : string
string
scheme (typically http or https)serverUrl(string|boolean $requestUri = null
) : string
string
boolean
[optional] if true, the request URI found in $_SERVER will be appended as a path. If a string is given, it will be appended as a path. Default is to not append any path.
string
server urlsetHost(string $host) : \Zend_View_Helper_ServerUrl
string
new host
\Zend_View_Helper_ServerUrl
fluent interface, returns selfsetScheme(string $scheme) : \Zend_View_Helper_ServerUrl
string
new scheme (typically http or https)
\Zend_View_Helper_ServerUrl
fluent interface, returns self$_host : string
$_scheme : string