What does "//some rendering calls follow" do..? Do you have any
requestAction calls or redirect in there (as Nate asked).

You could use the log function instead of the echo, and if your log
states:
Package_credits: 1
Old_credits: 0
New_credits: 1
Package_credits: 1
Old_credits: 1
New_credits: 2.

You need only ask your self why it is being executed twice.

die(); is a useful method ;) what do you get if you put die after your
echos - that would eliminate any subsequent calls and therefore help
lead you to the problem.

HTH,

AD7six
PS you are not by any change using browserHawk or some other detection
type sofware that includes a redirect are you?


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" 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
-~----------~----~----~----~------~----~------~--~---

Reply via email to