Hi John,

Thanks for your reply:

Because I'm new on cake, I just tried do exactally as followed cake
tutorial (simple ACL...).

So here's my login.ctp

<div class="users form">
<?php
if ($session->check('Message.auth')) $session->flash('auth');
echo $form->create('User', array('url' => array('controller' =>
'users', 'action' =>'login')));
?>
<fieldset>
<legend><?php __('Login');?></legend>
<?php
echo $form->input('User.username');
echo $form->input('User.password');
?>
</fieldset>
<?php echo $form->end('Login');?>
</div>

My users_controllers.php, I think that I use only html and form
helpers. Login & logout methods are the same as show on tutorial:

class UsersController extends AppController {

  var $name = 'Users';
  var $helpers = array('Html', 'Form');
  var $paginate = array('limit' => 10,  'order'=>array
('User.id'=>'desc'));

  function login() {
    //Auth Magic
  }

  function logout() {
    $this->Session->setFlash('Sucessful logout, bye');
    $this->redirect($this->Auth->logout());

  }

//and so on...

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

Reply via email to