setVars($vars); } /** * @param string $value * * @return $this */ public function setVars(string $value): CButtonCancel { $url = (new CUrl('?cancel=1'.$value))->getUrl(); return $this->onClick("javascript: return redirect('".$url."');"); } }