The problem is in pass().  If you keep set()ting a variable of the same
name, you're just going to overwrite the previous value.

 function pass() {
   $result = array();
   for ($i = 1; $i <= 3; $i++) {
      $result = am($result, $this->Test->myfunction($i));
} $this->set('result',$result);
 }


--~--~---------~--~----~------------~-------~--~----~
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?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to