예제 #1
0
 public function newAction()
 {
     $this->view->form = new Admin_Form_Page();
     if ($this->getRequest()->isPost()) {
         $FormData = $this->getRequest()->getPost();
         $this->view->form->addUrlValidator($FormData['parent']);
         if ($this->view->form->isValid($this->getRequest()->getPost())) {
             Zwe_Model_Page::addPage($this->view->form->getValue('title'), $this->view->form->getValue('parent'), $this->view->form->getValue('url'), $this->view->form->getValue('type'), $this->view->form->getValue('text'));
             $this->_helper->redirector('index');
         }
     }
 }