public function showRolePermissions(Request $request, Session $session, $view) { $this->_includeHeader(array('jquery', 'fancybox'), false, false, true); $id = $request->getParameter('id'); // Get list of roles from database $service = new SecurityService(); $listOfRolePermissions = $service->getRolePermissions($id); $info = $service->getRoleById($id); $this->setAttribute('name', $info->name); $this->setAttribute('role_id', $info->id); $this->setAttribute('list_of_role_permissions', $listOfRolePermissions); return new Template('show_role_permissions'); }