public function editAction()
 {
     $isAdmin = $this->isAdmin();
     $Page = new Model_Page();
     $data = $Page->Display($this->_getParam('pid'));
     $this->view->data = $data;
     $this->view->parentpages = $Page->DisplayAll(null, $this->_getParam('pid'));
     if ($data['PageType'] == 'Home') {
         $categories = $Page->getData('Category');
         $this->view->categories = $categories;
     }
     $this->render('create');
 }