public function dadosAction() { $array = $this->_request->getParams(); $requestModel = new RequestModel(); $requestData = $requestModel->fetchAll($requestModel->getRequestGrid($array)); $this->_helper->layout->disableLayout(); $page = $this->_request->getParam("page", 1); $responce = new stdClass(); $responce->page = $page; $responce->total = 10; $responce->records = 100; $i = 0; foreach ($attributeData as $row) { $responce->rows[$i]['cell'] = array($row->cdattribute, $row->nmattribute, $row->fgdatatype, $row->nmmeasurementunit); $i++; } $this->view->attribute = $responce; }