Re: Newby: "Undefined index" error

2008-12-29 Thread danwednesday
Thanks Webweave, but I now get 2 'undefined index' errors on the form page when I try to submit. The one positive is that it doesn't truncate my form values now, so it returns what I input. The code I have: login.ctp: check('Message.auth')) $session->flash('auth'); echo $form->create('User

Re: Newby: "Undefined index" error

2008-12-29 Thread Webweave
First you probably want the form name to be login.ctp, since that's what you're trying to do. My views/users/login.ctp looks like: check('Message.auth')) $session->flash('auth'); echo $form->create('User', array('action' => 'login')); echo $form->input('user_name'); echo $form->input

Re: Newby: "Undefined index" error

2008-12-29 Thread danwednesday
Thanks gearvOsh, Adding that snippet to the controller caused an error, so I read through the documentation link you sent through, and that has resolved the errors. However, now, it's just not working. When I submit a username and password, I just get redirected back to the form, with the usern

Re: Newby: "Undefined index" error

2008-12-28 Thread gearvOsh
You need to be using the User model. Make sure this is in your controller: $uses = array('User'); Perhaps look at these two links also: http://book.cakephp.org/view/171/Access-Control-Lists http://book.cakephp.org/view/172/Authentication --~--~-~--~~~---~--~~ You

Newby: "Undefined index" error

2008-12-28 Thread danwednesday
Hi, Following on from an earlier post, I'm receiving an error when trying to log in to a basic password protected admin system. The error is as follows: Notice (8): Undefined index: User [APP\controllers \users_controller.php, line 10] Code if(!empty($this->data)) { /