daily pastebin goal
15%
SHARE
TWEET

Untitled

a guest Jan 19th, 2019 54 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top