/** * Registers the needed JavaScript. */ public function registerClientScript() { $deleteCallback = <<<JSSS FileUpload2.init('#{$this->attrId}'); JSSS; $this->getView()->registerJs($deleteCallback); Asset::register($this->getView()); }
/** * Registers the needed JavaScript. */ public function registerClientScript() { $this->getView()->registerJs("FileUpload2.init('#{$this->attrId}');"); Asset::register($this->getView()); }