Zend\View\Helper\ServerUrl::__invoke
View helper entry point: Returns the current host's URL like http://site.com
Signature
public function __invoke([string|bool
$requestUri = null] )
Parameters
$requestUri
— object- [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.
Returns
- string