PHP Class BcAppHelper

Inheritance: extends Helper
Mostra file Open project: baserproject/basercms

Public Methods

Method 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 method

Constructor.
public __construct ( View $View, $settings = [] ) : void
$View View
return void

afterLayout() public method

afterLayout
public afterLayout ( type $layoutFile )
$layoutFile type

dispatchEvent() public method

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

url() public method

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
return string Full translated URL with base path.

webroot() public method

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