回覆內容: foreach ($six_month as $k => $v) { $six_upload = $upload->where("month_id={$vo['id']}")->find(); $six_month[$k]['upload'] = $six_upload; } $this->assign('six_month', $six_month);