Your redirect loads a new request without passing through the $numval variable.
I wouldn't expect that you need to be using a redirect within the getCount() function. I assume this function is likely to be called from an action and therefore should simply return the variable or use set() to send it to the view before returning to the action which called it. --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---