You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Asse block asset produce large overhead and ram, the Yii way of asset integration should remove $assets and provide an example of how to integrat with Yii::$app->getView();
The text was updated successfully, but these errors were encountered:
Sometimes your block should also register some css or js files, therfore you can access the global {{\luya\web\View}} Object inside of your PHP view template. Its like registering other assets, by the difference that you are accessing the global scope view instead of the view on $this. An example of how to integrate an asset file:
Assuming the blow code is the PHP View of your Block:
MyBlockAsset::register($this->appView);
Now your [[app-assets.md]] is registered in the appliation view object.
Asse block asset produce large overhead and ram, the Yii way of asset integration should remove $assets and provide an example of how to integrat with Yii::$app->getView();
The text was updated successfully, but these errors were encountered: