changing user model won't let me pull from Users now
I have 1 database linking to 2 apps. For the second app, I change the Auth table like so...
$this->Auth->userModel = 'newAuthTable';
The only p开发者_开发技巧roblem now is that I still want to run queries against my User model for the users table but it's pulling from 'newAuthTable' when I call $users = $this->User->find('all');
How can I run a query on the User model still?
Thank you.
Once the user is authenticated, change it back:
$this->Auth->userModel = 'users';
精彩评论