title: magento - get list of products which are in comparison list
body: <p>i need to get list of products which are in comparison list</p>
  
  <p>i have this code in phtml and it does nothing></p>
  
  <pre><code>$collection = Mage::getModel('catalog/product_compare_list')-&gt;getCollection()-&gt;load();
                  foreach($collection as $product) {
                     echo $product-&gt;getId().'&lt;Br /&gt;';
                  }
  </code></pre>
  
  <p>any suggestions where is problem ? thanks</p>