public function putAction() { $market_dao = new MarketDao(); $markets = array(); $markets['id'] = $this->getRequest()->getParam('id'); $markets['name'] = $this->getRequest()->getParam('name'); $markets['description'] = $this->getRequest()->getParam('description'); $markets['url'] = $this->getRequest()->getParam('url'); $market_dao->update($markets); $this->redirect('/markets'); }