/** * Список ролей * * @return void */ public function rolesAction() { $options = $this->User->getGridOptions('roles'); if ($this->_request->isXmlHttpRequest()) { $rows = $this->User->getRolesList(); $paginator = $this->User->getPaginator(); $this->_helper->json(Phorm_JQuery_DataGrid::data($rows, $paginator, $options)); } else { $this->view->assign('RolesDataTable', $this->view->DataGrid('RolesDataTable', $options)); } }