you should also be aware of uppercase and lowercase naming of your
objects

On 14 Nov., 15:46, phpMagpie <p...@webbedit.co.uk> wrote:
> From page:http://book.cakephp.org/view/1250/Authentication
>
> "Now, there are a few conventions to think about when using AuthComponent.
> By default, the AuthComponent expects you to have a table called 'users'
> with fields called 'username' and 'password' to be used."
>
> So if you insist on using a model other than users for logins you need to
> tell the auth component 
> this:http://book.cakephp.org/view/1251/Setting-Auth-Component-Variableshttp://book.cakephp.org/view/1265/AuthComponent-Variables
>
> $this->Auth->userModel = 'Student';
>
> However, I would recommend against this as I am sure if your app has
> students it will have teachers, or other types of users which would be
> better managed from a User model with those users having roles.
>
> HTH, Paul.

-- 
Our newest site for the community: CakePHP Video Tutorials 
http://tv.cakephp.org 
Check out the new CakePHP Questions site http://ask.cakephp.org and help others 
with their CakePHP related questions.


To unsubscribe from this group, send email to
cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php

Reply via email to