protected function registerAssets() { parent::registerAssets(); $assetPath = realpath(__DIR__ . '/../assets'); $assetUrl = \Yii::app()->assetManager->publish($assetPath); \Yii::app()->clientScript->registerCssFile($assetUrl . '/select2-bootstrap.css'); }