magento 1.x 方法总结

1 collection: 使用count 会使整个纪录load。 使用count后 ,collection 在使用 limit 会失效。获取 collection total 能够使用 方法 getSize()(该方法会使用另外一个sql语句,会忽略 limit 的设置)php 例:html Mage::getModel('catalog/product')->getCollection ->g
相关文章
相关标签/搜索