Documentation

helpers.php

Table of Contents

link_to()  : string
Generate a HTML link.
link_to_asset()  : string
Generate a HTML link to an asset.
link_to_route()  : string
Generate a HTML link to a named route.
link_to_action()  : string
Generate a HTML link to a controller action.

Functions

Generate a HTML link.

link_to(string $url[, string $title = null ][, array<string|int, mixed> $attributes = [] ][, bool $secure = null ]) : string
Parameters
$url : string
$title : string = null
$attributes : array<string|int, mixed> = []
$secure : bool = null
Return values
string

Generate a HTML link to an asset.

link_to_asset(string $url[, string $title = null ][, array<string|int, mixed> $attributes = [] ][, bool $secure = null ]) : string
Parameters
$url : string
$title : string = null
$attributes : array<string|int, mixed> = []
$secure : bool = null
Return values
string

Generate a HTML link to a named route.

link_to_route(string $name[, string $title = null ][, array<string|int, mixed> $parameters = [] ][, array<string|int, mixed> $attributes = [] ]) : string
Parameters
$name : string
$title : string = null
$parameters : array<string|int, mixed> = []
$attributes : array<string|int, mixed> = []
Return values
string

Generate a HTML link to a controller action.

link_to_action(string $action[, string $title = null ][, array<string|int, mixed> $parameters = [] ][, array<string|int, mixed> $attributes = [] ]) : string
Parameters
$action : string
$title : string = null
$parameters : array<string|int, mixed> = []
$attributes : array<string|int, mixed> = []
Return values
string

Search results