public function editAction() { $domain = waRequest::get('domain'); if ($domain) { $domain_model = new siteDomainModel(); $d = $domain_model->getByName($domain); $this->options['data']['info[domain_id]'] = $d['id']; } parent::editAction(); }
public function editAction() { $domain = waRequest::get('domain'); if ($domain) { $domain_model = new siteDomainModel(); $d = $domain_model->getByName($domain); $this->options['data']['info[domain_id]'] = $d['id']; } if (!waRequest::get('id') && !waRequest::get('parent_id')) { if (!$this->getPageModel()->countByField(array('domain_id' => siteHelper::getDomainId(), 'route' => waRequest::get('route')))) { $this->options['disable_auto_url'] = true; } } parent::editAction(); }