public function filteredSelectOptions() {
        $tasks = $this->Roles->Tasks->find('list', ['limit' => 200]);
        $users = $this->Roles->Users->find('list', ['limit' => 200]);
        $this->set(compact('tasks', 'users'));
    }
public function filteredSelectOptions() {
        $tasks = $this->Roles->Tasks->find('list', ['limit' => 200]);
        $users = $this->Roles->Users->find('list', ['limit' => 200]);
        $this->set(compact('tasks', 'users'));
    }
public function filteredSelectOptions ( ) { $ tasks = $ this -> Roles -> Tasks -> find ( 'list' , [ 'limit' => 200 ] ) ; $ users = $ this -> Roles -> Users -> find ( 'list' , [ 'limit' => 200 ] ) ; $ this -> set ( compact ( 'tasks' , 'users' ) ) ; }
This function is used to filter select options
This function is used to filter select options