public function saveproductAction() { if (!$this->_helper->acl('Admin')) { return $this->_helper->redirectCommon('gotoLogin'); } $request = $this->getRequest(); if (!$request->isPost()) { return $this->_helper->redirector('addproduct'); } if (false === ($id = $this->_catalogModel->saveProduct($request->getPost()))) { $this->view->productForm = $this->_getProductForm(); return $this->render('addproduct'); } $redirector = $this->getHelper('redirector'); return $redirector->gotoRoute(array('action' => 'productimages', 'id' => $id), 'admin'); }