luya\web\Controller::registerAsset PHP Method

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);
    }