/** * add new comment * @author EL GUENNUNI Sohaib s.elguennuni@gmail.com * @param <empty> * @return <empty> */ public function addcommentAction() { $this->_helper->layout->disableLayout(); if ($this->getRequest()->isPost()) { $data = array('wall_post_id' => $this->_getParam('post', null), 'comment_by_member_id' => $this->_idMember, 'body' => $this->_getParam('comment', null)); $idComment = $this->_commentPostModel->insert($data); $member = App_Utilities::getMember_Registry(); $comment = array('image_url' => $member->image_url, 'comment_id' => $idComment, 'first_name' => $member->first_name, 'last_name' => $member->last_name, 'time_create' => time(), 'body' => $this->_getParam('comment', null)); $this->view->comment = $comment; } }