| $FP. helpers.Html | |
| Functions | |
| link | Returns an HTML link for a specified controller and action |
| url | Returns a URL for a specified controller and action |
function link( options )
Returns an HTML link for a specified controller and action
| options | options object, see below |
| route | Optional, default “default” Name of route to construct |
| staticUrl | Optional, default null A url relative to the “static” folder. If defined, this overrides controller, action and id |
| controller | Optional, default current controller |
| action | Optional, default current action |
| id | Optional, default current id |
| params | Optional, default null additional params to add to the URL |
| anchor | Optional, default null String to add after “#’ in the URL |
| text | Optional, default generated URL If provided, this will be placed between the resulting <a></a> tags |
| [others] | Any other properties will be added as attributes to the tag |
function url( options )
Returns a URL for a specified controller and action
| options | options object, see below |
| route | Optional, default “default” Name of route to construct |
| staticUrl | Optional, default null A url relative to the “static” folder. If defined, this overrides controller, action and id |
| controller | Optional, default current controller |
| action | Optional, default current action |
| id | Optional, default “” |
| params | Optional, default null additional params to add to the URL |
| anchor | Optional, default null String to add after “#’ in the URL |
Returns an HTML link for a specified controller and action
function link( options )
Returns a URL for a specified controller and action
function url( options )