tags:

views:

400

answers:

1

hello , i am working on a magento project and i need to get the value according to country wise like select address where country ="Nepal"

can we send the where condition in getCollection() function

$collection = Mage::getModel('relocator/location')->getCollection();

any help will be appreciated

+2  A: 

got the solution ;P

Mage::getModel('relocator/location')->getCollection()->addFilter('country','Nepal');

jarus