Advertisement
Guest User

php

a guest
Mar 2nd, 2015
189
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.29 KB | None | 0 0
  1. public function owngroup(){
  2. $user_id = $this->Session->read('Auth');
  3. $user_id = $user_id['User']['id'];
  4. $services= $this->Service->find('all', array(
  5. 'recursive' => 2,
  6. 'conditions' => array(
  7. 'User.id' => $user_id
  8. ),
  9. )
  10. );
  11. debug($services);
  12. exit();
  13.  
  14. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement