lesarro
(Leonardo Saracini)
1
I’m optimizing my web application.
So I have merge almost css and js file by page and minimized.
I need some help to understand how yii.validation.js go in my web page after the footer.
I have set in web.php
…
'yii\web\AssetBundle\ActiveFormAsset' => ['css' => [], 'js' => [], 'depends' => []],
'yii\web\AssetBundle\ValidationAsset' => ['css' => [], 'js' => [], 'depends' => []]
but the file is still present after footer tag.
can someone help?
regards,
Leonardo
alirz23
(Ali Raza)
2
edit your AppAsset and comment out the following section
public $depends = [
// 'yii\web\YiiAsset',
'yii\bootstrap\BootstrapAsset',
];
lesarro
(Leonardo Saracini)
3
I have found my error:
I have to use this:
'yii\widgets\ActiveFormAsset => ['css' => [], 'js' => [], 'depends' => []],
'yii\validators\ValidationAsset' => ['css' => [], 'js' => [], 'depends' => []]