public function infoAction() { $args = $this->_getArguments(); $productId = $args['id']; try { $modelProduct = Model_Product::getById($productId); $this->view->setParam('product', $modelProduct); } catch (Exception $e) { $this->view->setParam('error', $e->getMessage()); } }