예제 #1
0
 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();
 }
예제 #2
0
 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();
 }
예제 #3
0
 public function defaultAction()
 {
     $this->setLayout(new blogDefaultLayout());
     $this->getResponse()->setTitle(_ws('Pages'));
     parent::defaultAction();
 }