Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在使用 find() 从数据库中检索一个值,但它返回一个包含对象的数组,我希望它只返回 fetchRow 返回的对象,是否有任何更改或类似的事情要做?
谢谢,最好的问候。
好吧,这很简单,对于那些有疑问的人,解决方案是:
Zend_Loader::loadClass('News');
$db = new News(); $row = $db->find($id)->current();
就是这样,谢谢。