Beispiel #1
0
 public function addAction()
 {
     // action body
     $namespace = new Zend_Session_Namespace();
     $this->view->test = $namespace->id;
     if ($this->_request->isPost()) {
         $data = $this->_request->getParams();
         $post_model = new Application_Model_Post();
         $namespace = new Zend_Session_Namespace();
         $this->view->test = $namespace->id;
         $user_id = intval($namespace->id);
         $post_model->AddPost($data, $user_id, 1);
         $this->redirect('/');
     }
 }