我正在研究Magento(EE)。我找到了一个术语“全页缓存”。谁能告诉我什么是“ Magento或Zend中的全页缓存?
我想通过在Collection中应用OR条件从表中获取数据
我正在使用这些代码行
$ collect =法师:: getModel('storelocater / storelocater')-> getCollection()-> addFieldToFilter(array(
数组(
'attribute'=>'country',
'eq'=>'印度'),
数组(
'attribute'=>'state',
'eq'=>'上')
));
echo $ data = $ collect-> getSelect();
它输出输出
SELECT main_table。* FROM storelocaterAS main_tableWHERE((Array ='')或(Array =''))
我还使用了addAttributeToFilter而不是addFieldToFilter,但是它返回致命错误