Class AssetHelper
This helper provides methods for generating asset paths. Codes are applicable to layout only.
<?php //auto render bootstrap styles echo $this->Cakestrap->Asset()->style(); //auto render bootstrap scripts echo $this->Cakestrap->Asset()->script(); ?>
- Cake\View\Helper
- Cakestrap\View\Helper\Basic
- Cakestrap\View\Helper\AssetHelper
public
string
|
|
public
string
|
|
public
string
|
__call(),
_reset(),
assignTemplate(),
body(),
options()
|
public
array
|
$helpers
Asset helpers |
#
['Html']
|
protected
string
|
$_jquery
Url to jquery library without a scheme in order to support http or https. |
#
'//code.jquery.com/jquery-1.11.3.min.js'
|
protected
array
|
$_autoScript
Automatically set JS script to an specific Bootstrap helpers. |
#
[
'Alert' => ['alert'],
'Dropdown' => ['dropdown'],
'Modal' => ['modal'],
'Tab' => ['tab'],
'Collapse' => ['collapse', 'transition'],
'NiceCollapse' => ['collapse', 'transition', 'nice-collapse'],
'NiceModal' => ['modal', 'nice-modal'],
]
|
protected
array
|
$_script
An array to handle scripts |
#
[]
|
protected
array
|
$_style
An array to handle styles |
#
[]
|
$_clone,
$_contents,
$_options,
$_stringTemplate,
$_template
|