Re: How to count users login?

2009-01-21 Thread Alexandru Ciobanu

Henrique Machado wrote:
> I need to provide an access count to my users
>
> Like "This is you 4 time here"
>
> I'm using the Auth component, my doubt is where put my
>
> $this->User->updateAll(array('User.access'=> 'User.access+1'), 
> array('User.id' => $user['User']['id']));
>
> I need to be sure that the user is logged successfull to increment the 
> access.
>
Perhaps an increment behavior will help you.

http://bakery.cakephp.org/articles/view/increment-behavior

--~--~-~--~~~---~--~~
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+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



How to count users login?

2009-01-21 Thread Henrique Machado
I need to provide an access count to my users

Like "This is you 4 time here"

I'm using the Auth component, my doubt is where put my

$this->User->updateAll(array('User.access'=> 'User.access+1'),
array('User.id' => $user['User']['id']));

I need to be sure that the user is logged successfull to increment the
access.

Ty

--~--~-~--~~~---~--~~
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+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---