/** * Registers the needed assets */ public function registerAssets() { $view = $this->getView(); ActiveFormAsset::register($view); }
/** * Registers the needed assets */ public function registerAssets() { $view = $this->getView(); ActiveFormAsset::register($view); $id = 'jQuery("#' . $this->options['id'] . ' .kv-hint-special")'; $view->registerJs('var $el=' . $id . ';if($el.length){$el.each(function(){$(this).activeFieldHint()});}'); }