public function addOpinionAction() { if ($this->request->isPost()) { Product::addOpinion($this->request->getPost('rating'), $this->request->getPost('idProduct'), $this->request->getPost('comment'), $this->session->get('id')); } }