I have a collection, which contains only one product. How I can get this product witho开发者_开发百科ut using a "foreach' cycle?
Use $collection->getFirstItem()
to retrieve the first item from a collection.
I have a collection, which contains only one product. How I can get this product witho开发者_开发百科ut using a "foreach' cycle?
Use $collection->getFirstItem()
to retrieve the first item from a collection.
上一篇:为何说头大股骨偏短一定是男孩??
求一个好听的粤菜餐厅名字?:下一篇
精彩评论