Reputation: 72961
I have some additional data I want to load on each request for the authenticated user. I recently adopted the Auth Component. Previously, I was loading this additional data in my AppController's beforeFilter
. I suppose I could leave it there and wrap the code within a test against $this->Auth->user();
, but wanted to see if there were better way for both these items.
So the question is two part:
$this->Auth->user();
in the AppController's beforeFilter
Upvotes: 0
Views: 348
Reputation: 7575
Upvotes: 1