protected function registerAssets($files)
    {
        foreach ($files as $type => $_files) {
            if ($type == 'script') {
                foreach ($_files as $file) {
                    $this->view->registerJsFile($this->assetUrl . $file);
                }
            } else {
                foreach ($_files as $file) {
                    $this->view->registerCssFile($this->assetUrl . $file);
                }
            }
        }
    }
protected function registerAssets($files)
    {
        foreach ($files as $type => $_files) {
            if ($type == 'script') {
                foreach ($_files as $file) {
                    $this->view->registerJsFile($this->assetUrl . $file);
                }
            } else {
                foreach ($_files as $file) {
                    $this->view->registerCssFile($this->assetUrl . $file);
                }
            }
        }
    }
protected function registerAssets ( $ files ) { foreach ( $ files as $ type => $ _files ) { if ( $ type == 'script' ) { foreach ( $ _files as $ file ) { $ this -> view -> registerJsFile ( $ this -> assetUrl . $ file ) ; } } else { foreach ( $ _files as $ file ) { $ this -> view -> registerCssFile ( $ this -> assetUrl . $ file ) ; } } } }
Register asset bundle to Yii view
@param $files
Register asset bundle to Yii view