Guest User

Untitled

a guest
Jan 19th, 2019
86
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.31 KB | None | 0 0
  1. public function search() {
  2.     // get filter conditions from Form's POST
  3.     $conditions = array(
  4.         'User.field_user_job' => 'Painter',
  5.         'User.field_user_age <' => 30
  6.     );
  7.     $users = $this->paginate('User', $conditions);
  8.  
  9.     // `field_user_job` and `field_user_age` are CCK Fields
  10.  
  11.     $this->set(compact('users'));
  12. }
Add Comment
Please, Sign In to add comment