60, 'order' => array( 'Allowedlist.name' => 'ASC' ) ); public function admin_add() { if (!$this->userRole['perm_regexp_access']) { $this->redirect(array('controller' => 'regexp', 'action' => 'index', 'admin' => false)); } $this->set('action', 'add'); $this->AdminCrud->adminAdd(); } public function admin_index() { if (!$this->userRole['perm_regexp_access']) { $this->redirect(array('controller' => 'allowedlists', 'action' => 'index', 'admin' => false)); } $this->AdminCrud->adminIndex(); $this->render('index'); } public function admin_edit($id = null) { if (!$this->userRole['perm_regexp_access']) { $this->redirect(array('controller' => 'allowedlists', 'action' => 'index', 'admin' => false)); } $this->AdminCrud->adminEdit($id); $this->set('action', 'edit'); $this->set('id', $id); $this->render('admin_add'); } public function admin_delete($id = null) { if (!$this->userRole['perm_regexp_access']) { $this->redirect(array('controller' => 'allowedlists', 'action' => 'index', 'admin' => false)); } $this->AdminCrud->adminDelete($id); } public function index() { $this->recursive = 0; $this->set('list', $this->paginate()); } }