Gentlepeople, Thanks for your prompt and to the point replies.
I will look into the info you provided. I also found the rdBloggery example which seems relevant for what I am trying to do. I guess I will have to get used to the required 1-1-1-1 mapping between controller, model, view and database table. I am just not sure it will always work out. E.g. what if I decided, for whatever reason, to store user authentication in a local encrypted file. Would I be able to get that working within the CakePHP framework? Another thing I am wondering about is if I decided to expose some of the features of what I am building through a web service (e.g. SOAP). How could I organize the code so that both my web site and web service implementation are able to reuse the core of the business logic code. Thanks, Peter John Zimmerman [gmail] wrote: > This should get you started... > > http://manual.cakephp.org/chapter/19 > > On 5/24/06, Grant Cox <[EMAIL PROTECTED]> wrote: > > > > > > Isn't there going to be some kind of User model behind that page? If > > not, how do you authenticate their login? > > > > You would want to do this the same as any other function, have a User > > model with a username and password, a UsersController with a login > > function, and a users/login.thtml View. In the UsersController login > > function it checks if data has been submitted, if not then the login > > view is displayed. If data has been submitted it is validated (ie > > check if a User model exists with the provided username/password), and > > either the login view is shown with an error (invalid credentials), or > > the page is redirected to whatever the authenticated user should see. > > > > > > > > > > > ------=_Part_164899_21213239.1148455941820 > Content-Type: text/html; charset=ISO-8859-1 > Content-Transfer-Encoding: quoted-printable > > This should get you started...<br><br><a > href="http://manual.cakephp.org/chapter/19">http://manual.cakephp.org/chapter/19</a><br><br><div><span > class="gmail_quote">On 5/24/06, <b class="gmail_sendername">Grant Cox</b> > < > <a href="mailto:[EMAIL PROTECTED]">[EMAIL PROTECTED]</a>> > wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid > rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><br>Isn't > there going to be some kind of User model behind that page? If > <br>not, how do you authenticate their login?<br><br>You would want to do > this the same as any other function, have a User<br>model with a username and > password, a UsersController with a login<br>function, and a users/login.thtml > View. In the UsersController login > <br>function it checks if data has been submitted, if not then the > login<br>view is displayed. If data has been submitted it is > validated (ie<br>check if a User model exists with the provided > username/password), and<br>either the login view is shown with an error > (invalid credentials), or > <br>the page is redirected to whatever the authenticated user should > see.<br><br><br><br> > > ------=_Part_164899_21213239.1148455941820-- --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Cake PHP" group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cake-php -~----------~----~----~----~------~----~------~--~---