Toggle navigation
Hot Examples
EN
EN
RU
DE
FR
ES
PT
IT
JP
ZH
KO
PHP
PHP
C#
Java
Go
C++
Python
JS
TS
Search
Home
luya
web
Controller
registerAsset
luya\web\Controller::registerAsset PHP Method
Controller Class Documentation
Show file
Open project: luyadev/luya
registerAsset()
public
method
Helper method for registring an asset into the view.
public
registerAsset
(
string
$className
)
$className
string
The asset class to register, example `app\asset\MyTestAsset`.
public function registerAsset($className) { $className::register($this->view); }
Controller
getModuleLayoutViewPath
getViewPath
registerAsset
render
renderLayout