Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public function search() {
- // get filter conditions from Form's POST
- $conditions = array(
- 'User.field_user_job' => 'Painter',
- 'User.field_user_age <' => 30
- );
- $users = $this->paginate('User', $conditions);
- // `field_user_job` and `field_user_age` are CCK Fields
- $this->set(compact('users'));
- }
Add Comment
Please, Sign In to add comment