> The thing you should change is your boss ;)
I'm seriously considering this solution ^^
> I'm kidding :P There are several ways for making a counter and depending of
> required stats, each solution has his advantages.
>
> In your case, create an integer field on your model and increment it each
> time the object is displayed.
>
> public function executeIndex(...)
> {
> ...
> $myModel->hitView();
> ...
>
> }
>
> And in your model :
>
> public function hitView()
> {
> $this->setDisplayed($this->getDisplayed() + 1);
> $this->save();
>
> }
I added something like that.
> Simple is better,
I cannot agree more
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"symfony users" 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/symfony-users?hl=en
-~----------~----~----~----~------~----~------~--~---