CakePHP - Using User model in SecurityComponent
I'm creating a application based on REST requests and I'm using SecurityComponent for HTTP Authorisation. My question is - how can I use a User model with it? Instead of giving a array of usernames and passowrds...
Cheers, Lucas
- Try to copy file app_controller.php to /app folder
Try to add the line
var $uses = array('User');
after
class AppController extends Controller
line
精彩评论