Thanks, nate!
But what is 'am'
in $result = am($result, $this->Test->myfunction($i)); ?

Is it a PHP function or a CakePHP function (I can't figure out right
now)?


On 1 2 ,   6 23 , "nate" <[EMAIL PROTECTED]> wrote:
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