title: CakePHP - how to push array in Session?
body: <p>If I have the following,</p>
  
  <pre><code>$this-&gt;Session-&gt;write('ScoreCardCriteria', 'test');
  </code></pre>
  
  <p>And want to add another item to ScoreCardCriteria as an array of items, how would I do so?</p>
  
  <p>With regular PHP, It would be something like</p>
  
  <pre><code>$_SESSION['ScoreCardCriteria'][] = 'test';
  </code></pre>
  
  <p>I came up with this:</p>
  
  <pre><code>    $new_array = array_merge((array)$this-&gt;Session-&gt;read('ScoreCardCriteria'), array('test'));
      $this-&gt;Session-&gt;write('ScoreCardCriteria', $new_array);
  </code></pre>
  
  <p>But I'd love it if there was a more "cake" way to do it.</p>