absolute_url — Get an absolute URL.

Navigation-related functions


absolute_url($options = array(), $route = null, $queryParams = array(), $reset = false, $encode = true)

Get an absolute URL.

This is necessary because Zend_View_Helper_Url returns relative URLs, though absolute URLs are required in some contexts. Instantiates view helpers directly because a view may not be registered.

  • $options (mixed) – If a string is passed it is treated as an Omeka-relative link. So, passing ‘items’ would create a link to the items page. If an array is passed (or no argument given), it is treated as options to be passed to Omeka’s routing system.
  • $route (string) – The route to use if an array is passed in the first argument.
  • $queryParams (mixed) – A set of query string parameters to append to the URL
  • $reset (bool) – Whether Omeka should discard the current route when generating the URL.
  • $encode (bool) – Whether the URL should be URL-encoded

string HTML



See Also