Monday, June 28, 2010

Re: Counter with Database

Wow thats greater then i thought ^^ cake is greate and i will bake therfore something it is like my framework but cake is far away for my framework xD 

thanks cricket

2010/6/28 cricket <zijn.digital@gmail.com>
On Sun, Jun 27, 2010 at 1:45 PM, Davor Ilic <webfacer@gmail.com> wrote:
> Hi,
> i have a question about the Controller.
> How i can say to controller to count with the DB?
> to say it easier way:
> i have articles number and i want to say no to controller: hei take the
> article_num and count +1 and then save it do DB?
> Is this possible with the controller?
> Do i can do this with the method find or something or is there an easier
> way?

Have a look at counterCache:

http://book.cakephp.org/view/816/counterCache-Cache-your-count

Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions.

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

Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions.
 
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+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en

No comments: