/** * Registers the needed assets */ public function registerAssets() { $view = $this->getView(); StarRatingAsset::register($view)->addLanguage($this->language, 'star-rating_locale_'); $theme = ArrayHelper::getValue($this->pluginOptions, 'theme'); if (!empty($theme) && in_array($theme, self::$_themes)) { StarRatingThemeAsset::register($view)->addTheme($theme); } $this->registerPlugin($this->pluginName); }
/** * Registers the needed assets */ public function registerAssets() { $view = $this->getView(); StarRatingAsset::register($view); $this->registerPlugin('rating'); }