Метод | Описание | |
---|---|---|
__construct ( View $View, $settings = [] ) : void | Constructor. | |
afterLayout ( type $layoutFile ) | afterLayout | |
dispatchEvent ( string $name, array $params = [], $options = [] ) : mixed | イベントを発火 | |
url ( mixed $url = null, boolean $full = false, $sessionId = true ) : string | Finds URL for specified action. | |
webroot ( string $file ) : string | Checks if a file exists when theme is used, if no file is found default location is returned |
public __construct ( View $View, $settings = [] ) : void | ||
$View | View | |
Результат | void |
public url ( mixed $url = null, boolean $full = false, $sessionId = true ) : string | ||
$url | mixed | Cake-relative URL, like "/products/edit/92" or "/presidents/elect/4" or an array specifying any of the following: 'controller', 'action', and/or 'plugin', in addition to named arguments (keyed array elements), and standard URL arguments (indexed array elements) |
$full | boolean | If true, the full base URL will be prepended to the result |
Результат | string | Full translated URL with base path. |