如何获取 catid="someid" 的数组?
我试过这个但没有用
public function findCatArr($catid)
{
$select = $this->getDbTable()->select();
$select->setIntegrityCheck(false);
$select->from('photo',array('id','catid','pic','desc'
))->where("catid"." LIKE '%".$catid."%'");
$row = $this->getDbTable()->fetchAll($select);
if (0 == count($row)) {
return;
}else{
return $row->toArray();
}
}