/** * Running widget * * @access public * * @return void */ public function run() { $result = Html::endForm(); if ($this->client) { $result .= Html::script($this->client); } echo $result; }
/** * Register JS script * * @access public * * @param string $source file name * @param bool $isHead is head block * * @return void */ public function registerScript($source, $isHead = true) { $this->styleScripts[] = ['isHead' => $isHead, 'body' => Html::script($source)]; }