I have forgotten more than I'll ever know
Posts tagged User
Accessing user_id in CakePHP
Feb 8th
Add this to the model
class Foo extends AppModel { var $currentUsrId = NULL; }
Then add this to the controller
class FooController extends AppController { function beforeFilter(){ parent::beforeFilter(); $this->Foo->;currentUsrId = $this->;Auth->user('id'); } }