Tuesday, November 24, 2009

Re: Creating a login screen

Hi! Is your mod_rewrite activated?. Can you send me the users_controller file to make some tests?.

Bye!

2009/11/24 Dewayne Pinion <dpinion@gmail.com>
Hi Josu,
Thank you for the response. Yes, I have the file created and it is in the app/controllers directory

On Tue, Nov 24, 2009 at 10:32 AM, josu jauregui <josujt@gmail.com> wrote:
Hi!. Sorry but my english is not good.

You must be sure that the name of the controller file is users_controller.php and it´s in app/controllers directory.

I hope this can help you.

2009/11/24 Dave <davidcroda@gmail.com>

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.

Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions.

 
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

Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions.

 
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

Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions.
 
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

No comments: