我需要以数组形式访问当前加载的搜索结果,但需要从catalog/layer/view.phtml.
我试过使用下面的代码,但它返回一个空数组......
$products = $this->getLayout()  
                 ->getBlockSingleton('catalog/product_list')
                 ->getLoadedProductCollection()
                 ->toArray();
echo "<pre>".print_r($products,true)."</pre>";
die();
这甚至可能吗?