public function run() { V3toysDeliveryWidgetAsset::register($this->view); $js = Json::encode($this->clientOptions); $this->view->registerJs(<<<JS new sx.classes.V3toysDelivery({$js}); JS ); return $this->render($this->viewFile); }
public function run() { V3toysDeliveryWidgetAsset::register($this->view); $js = Json::encode($this->clientOptions); $this->view->registerJs(<<<JS new sx.classes.V3toysDelivery({$js}); JS ); return $this->render($this->viewFile); }