Maybe a little code?

2009/6/23 si-mon <sijumo...@gmail.com>

>
> Hi Rick,
>
> I will explain the context in detail:
>
> In my system, there is a voting system through email i.e. Accept or
> Reject links. The link will be
>
>
> http://example.com/subject/vote/request_id:1/request_group:1/user:1/option:accept
> or option:reject
>
> When I am clicking on this link, I need to update the status of the
> corresponding record to 1 (voted) and to display the message 'Thank
> you'. Then, if the user clicks on the same link from email again, I
> need to display 'You have already voted.' But, due to repeating the
> vote function two times in a single click, every time the message
> displays as 'You have already voted.'
>
> Hope this is clear.
>
> So, what I need is, to limit the function execution only once. Then
> the problem will be solved.
>
> Thanks again,
>
>
>
> On Jun 23, 6:14 pm, Rick <will...@gmail.com> wrote:
> > Perhaps if we knew what functions were repeating and in what context
> > we could help.
> >
> > Rick
> >
> > On Jun 23, 7:18 am, si-mon <sijumo...@gmail.com> wrote:
> >
> > > Hi all,
> >
> > > In cakePHP, functions without having a view (.ctp file) are repeating
> > > more than once in a single call. I only want to execute these
> > > functions once in a single call. How can we avoid the executions after
> > > first. And, please tell me what is the reason for repeating more than
> > > once...
> >
> > > Thanks in advance...
> >
>

--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to