Which of the following will get a list of products belonging to a specific category within a view file?

  • $productCollection = Mage::getResourceModel(‘catalog/product_collection’) ->addCategoryFilter($category);
  • {{block type=”catalog/product_list” category_id=”7″ template=”catalog/product/list.phtml”}}
  • $productCollection = Mage::getResourceModel(‘catalog/product_collection’) ->addFilter($category);
  • $productCollection = Mage::getModel(‘catalog/product_collection’) ->addCategoryFilter($category);

Просто посмотрел в коде.