public function addNewProductAction() { if ($this->request->isPost()) { Product::addNewProduct($this->request->getPost('name'), $this->request->getPost('category')); } }