PHP Class BcAppHelper

Inheritance: extends Helper
Afficher le fichier Open project: baserproject/basercms

Méthodes publiques

Méthode Description
__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

Method Details

__construct() public méthode

Constructor.
public __construct ( View $View, $settings = [] ) : void
$View View
Résultat void

afterLayout() public méthode

afterLayout
public afterLayout ( type $layoutFile )
$layoutFile type

dispatchEvent() public méthode

イベントを発火
public dispatchEvent ( string $name, array $params = [], $options = [] ) : mixed
$name string
$params array
Résultat mixed

url() public méthode

Returns an URL pointing to a combination of controller and action. Param $url can be: + Empty - the method will find adress to actuall controller/action. + '/' - the method will find base URL of application. + A combination of controller/action - the method will find url for it.
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
Résultat string Full translated URL with base path.

webroot() public méthode

PENDING Core Hack
public webroot ( string $file ) : string
$file string
Résultat string $webPath web path to file.