I'm sure there is a relatively simple answer. I am trying to use CakePHP 2.0 to bake an application from the command line, and i would like cake to create the basic AuthComponent
methods for my user
model. the database table for users is named users
, which includes the two necessary fields for auth, username
and password
.
I've been able to include AuthComponent
in my usersController
from bake, but have been unsuccessful at getting it to generate basic usersController
actions for auth, such as login()
and logout()
.
How can I do this? generating this skeleton code will help save a lot of time.
Thanks in advance!!!!