Helper for returning the current server URL (optionally with request URI)
View helper entry point: Returns the current host’s URL like http://site.com
| Parameters: | string|bool – [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. |
|---|---|
| Return type: | string server url |
Sets host
| Parameters: | string – new host |
|---|---|
| Return type: | ZendViewHelperServerUrl fluent interface, returns self |
Returns scheme (typically http or https)
| Return type: | string scheme (typically http or https) |
|---|
Sets scheme (typically http or https)
| Parameters: | string – new scheme (typically http or https) |
|---|---|
| Return type: | ZendViewHelperServerUrl fluent interface, returns self |
Set flag indicating whether or not to query proxy servers
| Parameters: | bool – |
|---|---|
| Return type: | ServerUrl |
Detect if a proxy is in use, and, if so, set the host based on it
| Return type: | bool |
|---|