link_to — Get a link to a page within Omeka.¶
Summary¶
- link_to($record, $action = null, $text = null, $props = array(), $queryParams = array())¶
Get a link to a page within Omeka.
The controller and action can be manually specified, or if a record is passed this function will hand off to record_url to automatically get a link to that record (either its default action or one explicitly chosen).
Parameters: - $record (Omeka_Record_AbstractRecord|string) – The name of the controller to use for the link. If a record instance is passed, then it inflects the name of the controller from the record class.
- $action (string) – The action to use for the link
- $text (string) – The text to put in the link. Default is ‘View’.
- $props (array) – Attributes for the <a> tag
- $queryParams (array) – the parameters in the uri query
Returns: string HTML