/** * Running widget * * @access public * * @return void */ public function run() { $result = Html::endForm(); if ($this->client) { $result .= Html::script($this->client); } echo $result; }
/** * @inheritdoc */ public function registerScript($source, $isHead = true) { $this->styleScripts[] = ['isHead' => $isHead, 'body' => Html::script($source)]; }