title: Passing array to requestAction in CakePHP
body: <p>I have function</p>
  
  <pre><code>public myfunction($myArray) {
  }
  </code></pre>
  
  <p>I need to pass <code>array("cat", "dog")</code>   To action.</p>
  
  <pre><code>$output = $this-&gt;requestAction(
      array('controller' =&gt; 'app', 'action' =&gt; 'myfunction'),
      array("cat","dog")
  );
  </code></pre>
  
  <p>But this passes only <code>cat</code> to my controller action, <code>dog</code> wasn't passed.</p>
  
  <p>I tried this:</p>
  
  <pre><code>$output = $this-&gt;requestAction(
      array('controller' =&gt; 'app', 'action' =&gt; 'myfunction'),
      array("myArray" =&gt; array("cat","dog"))
  );
  </code></pre>
  
  <p>But it didn't help. I checked <a href="http://book.cakephp.org/2.0/en/controllers.html#Controller%3a%3arequestAction" rel="nofollow">cookbook</a> but couldn't find relevant example.
  How can I fix this? Thank you</p>