Tuesday, November 24, 2009

Re: Creating a login screen

Hi dave,
I have tried several urls:

/users
/users/login

both return the same error.

On Tue, Nov 24, 2009 at 9:21 AM, Dave <davidcroda@gmail.com> wrote:
Can you be more specific about when you get this error? What is the URL cake is trying to access

On Tue, Nov 24, 2009 at 8:58 AM, Dewayne Pinion <dpinion@gmail.com> wrote:
I have been following the directions there and haven't made it very far. I end up with the following error:

Missing Controller

Error: UsersController could not be found.

Error: Create the class UsersController below in file: app/controllers/users_controller.php

<?php
class UsersController extends AppController {

var $name = 'Users';
}
?>

Notice: If you want to customize this error message, create app/views/errors/missing_controller.ctp

From my users_controller.php file:

 class UsersController extends AppController {
 var $name = 'Users';
 var $components = array('Auth');

 function login() {
 }
 function logout() {
 $this->redirect($this->Auth->logout());
 }
 }


login.ctp file:

  <?php
 $session->flash('auth');
 echo $form->create('User', array('action' => 'login'));
 echo $form->input('username');
 echo $form->input('password');
 echo $form->end('Login');
 ?>


any ideas?










On Mon, Nov 23, 2009 at 9:47 AM, ddaffy <ddaffy@gmail.com> wrote:



--
Dewayne Pinion
Web/Software Guy
Trenton Technology
http://www.trentontechnology.com

--

You received this message because you are subscribed to the Google Groups "CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com.
To unsubscribe from this group, send email to cake-php+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/cake-php?hl=en.

--

You received this message because you are subscribed to the Google Groups "CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com.
To unsubscribe from this group, send email to cake-php+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/cake-php?hl=en.



--
Dewayne Pinion
Web/Software Guy
Trenton Technology
http://www.trentontechnology.com

--

You received this message because you are subscribed to the Google Groups "CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com.
To unsubscribe from this group, send email to cake-php+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/cake-php?hl=en.

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate