Created
July 14, 2015 11:14
-
-
Save ashleydavies/8d41b58d821c712e0d9b to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public function initialize() { | |
parent::initialize(); | |
$this->Auth->deny(); | |
$this->loadModel('Users'); | |
$this->loadModel('Items'); | |
$user = $this->Users->find() | |
->where(['id' => $this->Auth->user('id')]) | |
->contain(['Ranks']) | |
->first() | |
->toArray(); | |
$this->set('user', $user); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment