public function removerItemAction() { $this->getHelper('viewRenderer')->setNoRender(); $request = $this->getRequest()->getParams(); $id = $request['id']; $carrinho = new Application_Model_Carrinho(); $retorno = $carrinho->carrinho($request['id'], NULL, TRUE, TRUE); echo json_encode($retorno); }