title: Cakephp elements and for each loops
body: <p>I'm breaking my head some time now on the following cakePHP code:</p>
  
  <p>This is my controller:</p>
  
  <pre><code>&lt;?php
  class HeaderController extends AppController {
      public $helpers = array('Html', 'Form');
  
       public function index() {
  
      }
  
      public function usp() {
         return $this-&gt;set('usp', $this-&gt;Header-&gt;query('SELECT * FROM USP WHERE Actief = 1'));
      }
  
  }
  </code></pre>
  
  <p>And this is my element:</p>
  
  <pre><code>            &lt;? 
                  $UNSP = $this-&gt;requestAction('header/usp');
                  print_r($UNSP);
  foreach($UNSP['header'] as $USPs): 
      echo $USPs['USP']['Naam']; 
  endforeach; 
  </code></pre>
  
  <p>The query works and is executed when the page loads. I get an errormessage saying Invalid argument supplied for foreach() [APP/View/Elements/header.ctp, line 9]</p>
  
  <p>Can somebody please help me with this?</p>