public function menuEditAction() { $post = $this->getRequest()->getPost(); $table = new ZfBlank_DbTable_SiteMenu(); $this->view->id = $table->edit($post['id'], $post['name'], $post['link']); //sends JSON with data: "id": item_id }