public function dataafilliatesphysycallocationAction() { $cdphysicallocation = $this->_request->getParam('cdphysicallocation'); $physicallocationModel = new PhysicallocationModel(); $physicallocationData = $physicallocationModel->getLocationByIdPhysical($cdphysicallocation); $i = 0; foreach ($physicallocationData as $row) { $responce->rows[$i]['cell'] = array($row->nmphysicallocation, $row->nmcolor, $row->cdphysicallocation, $row->nmphysicallocation); $i++; } $this->view->dataafilliatesphysycallocation = $responce; }