title: Magento: Get a reference to search results within catalog/layer/view.phtml
body: <p>I need to access the currently loaded search results as an array but from within <code>catalog/layer/view.phtml</code>. </p>
  
  <p>I've tried using the following code, but it returns an empty array...</p>
  
  <pre><code>$products = $this-&gt;getLayout()  
                   -&gt;getBlockSingleton('catalog/product_list')
                   -&gt;getLoadedProductCollection()
                   -&gt;toArray();
  
  echo "&lt;pre&gt;".print_r($products,true)."&lt;/pre&gt;";
  die();
  </code></pre>
  
  <p>Is this even possible?</p>