Magento collection set page size


Magento collection set page size : You can set page size in magento as below.


Magento collection set page size Syntax

$collection = Mage::getModel('module_name/model_name')
->getCollection()
->setPageSize('1');

The above filter will select only one record from the collection.


User Ans/Comments

📖 Read More


Advertisements