protected function attached($obj) { parent::attached($obj); if ($obj instanceof FormBuilder) { $this->onAttached($obj); } }
protected function attached($obj) { parent::attached($obj); if ($obj instanceof FilterComponent) { /** @var Form $cmp */ foreach ($this->getComponents() as $cmp) { if ($this->isAjax()) { $cmp->getElementPrototype()->appendAttribute('class', 'ajax'); } $cmp->onSuccess[] = [$obj, 'successForm']; $cmp->setDefaults($obj->getFilterValues()); } } }
public function attached($niceUrl) { parent::attached($niceUrl); $this->prefix = $this->lookupPath('Zax\\Application\\Routers\\NiceUrl\\NiceUrl'); }