public function registerAssetFiles($view)
    {
        if (YII_ENV_PROD) {
            if (!empty($this->productionJs)) {
                $this->js = $this->productionJs;
            }
            if (!empty($this->productionCss)) {
                $this->css = $this->productionCss;
            }
        }
        parent::registerAssetFiles($view);
    }
public function registerAssetFiles($view)
    {
        if (YII_ENV_PROD) {
            if (!empty($this->productionJs)) {
                $this->js = $this->productionJs;
            }
            if (!empty($this->productionCss)) {
                $this->css = $this->productionCss;
            }
        }
        parent::registerAssetFiles($view);
    }
public function registerAssetFiles ( $ view ) { if ( YII_ENV_PROD ) { if ( ! empty ( $ this -> productionJs ) ) { $ this -> js = $ this -> productionJs ; } if ( ! empty ( $ this -> productionCss ) ) { $ this -> css = $ this -> productionCss ; } } parent :: registerAssetFiles ( $ view ) ; }
Registers the CSS and JS files with the given view.
In production environments, make use of the production asset files if they are provided
@param \yii\web\View $view the view that the asset files are to be registered with.
Registers the CSS and JS files with the given view . In production environments make use of the production asset files if they are provided