0
試圖與Zend_Db_Tables
任務是從2或可能是3表中檢索數據並返回爲json。被困whith Zend_Db_Tables
代碼:
public function getWorkerAction()
{
$request = $this->getRequest();
$workers = new table_1();
if (!$worker) {
$res = array(
'success' => false,
'data' => 'empty',
);
}
else {
$card = $worker->findParentRow('Table2');
$res = array(
'success' => true,
'data' => array_merge($worker->toArray(), $card->toArray()),
);
}
$this->_helper->json($res);
}
問題是:
- 字段計數= 30中的每個(只需要3-10)
- 一些字段是BLOB/CLOB
爲每個地方的每張桌子生成選擇似乎對我來說是牀上解決方案。在這種情況下,我應該如何生成選擇
與我已經完成的相同的方式。 – Subdigger