|
楼主 |
发表于 2010-4-16 19:23:01
|
显示全部楼层
回复 8# Hex
看了php手册,那里好像要用json_decode(),没太看懂,也试了下还是报错.
改成现在这个不报错了,但是还是不对,没有显示结果,好郁闷啊,就传个参数而已,还这么折腾人,闹心死了
function content()
{
$this->load->model('Mhome');
$data['journal_comment'] = $this->Mhome->get_journal_comment($this->uri->segment(3));
foreach ($data['journal_comment'] as $value) {
$id = $value->id;
$data['journal_replytocom'] = $this->Mhome->get_journal_replytocom($id);
}
} |
|