> UsersController:
>
> // this is the stripped-down version
>
> public function login()
> {
> if ($user = $this->Auth->user())
> {
> $this->User->Login->create();
> $this->User->Login->save(
> array(
> 'Login' => array(
> 'user_id' => $user['User']['id']
> )
> )
> );
> }
>
> }
that won't work for me, i don't know why.
first I inserted your IF with the db update, but nothing happend.
then I tested the IF:
if ($user = $this->Auth->user())
{
exit();
}
but no effects.
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---