Advertisement
Guest User

Untitled

a guest
Jan 24th, 2016
119
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.27 KB | None | 0 0
  1. public function login($username = null, $password = null) {
  2.  
  3. $logged = $this->Auth->login(); // result is boolean(true) all the time
  4. $userObj = $this->Auth->user(); // only the user name
  5.  
  6. switch ($userObj['role']) { ... // Illegal string offset 'role'
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement