My site originally had a standard users controller with a login
function, which I was using to log in.
However, I've now moved the login function to one of the other pages.
I changed the appropriate line in app_controller to:
$this->Auth->loginAction = array('admin' => false, 'controller' =>
'pages', 'action' => 'membership');
The login form is just
<?php
echo $this->Form->create('user', array('action' => 'login', 'class'
=> 'columnform'));
echo $this->Form->input('username', array('label' => 'name'));
echo $this->Form->input('password');
echo $this->Form->end('Login');
?>
However, this doesn't seem to work. When I try to log in, I just get
an error that says
Error: The action login is not defined in controller UsersController
I cleared the cache, but that didn't help. Do I need to do something
more?
Thanks.
--
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
[email protected] For more options, visit this group at
http://groups.google.com/group/cake-php