public function editAction()
 {
     $this->view->form = $form = new Application_Form_Post();
     $id = $this->_request->getParam('id', 0);
     if ($this->_request->isPost() && $id > 0) {
         $formData = $this->_request->getPost();
         if ($form->isValid($formData)) {
             $post = new Application_Model_DbTable_Posts();
             $post->updatePost($form->getValues(), $id);
             $this->_redirect('/post/index');
         } else {
             $form->populate($formData);
         }
     } else {
         if ($id > 0) {
             $post = new Application_Model_DbTable_Posts();
             $form->populate($post->getPost($id));
         }
     }
 }