notice:array to string conversion
本帖最后由 xusheng890331 于 2014-01-06 13:13:27 编辑
网站中出现下面的错误想请教下怎么解决呢?
A PHP Error was encountered
Severity: Notice
Message: Array to string conversion
Filename: controllers/page.php
Line Number: 162
function showPageV($id,$vnum){$this->pageModel->id=$id;$this->pageModel->get_entries(); $this->smarty->assign($vnum,$this->pageModel->query->result_array()); $this->smarty->assign('mainid','theDiv'.$this->p);}
分享到: 更多
------解决方案--------------------
var_dump($vnum);
看看是什么
------解决方案--------------------
function showPageV($id,$vnum){$this->pageModel->id=$id;$this->pageModel->get_entries(); var_dump($vnum); print_r($this->pageModel->query->result_array());die(); $this->smarty->assign($vnum,$this->pageModel->query->result_array()); $this->smarty->assign('mainid','theDiv'.$this->p);}
免责声明:本站内容仅用于学习参考,信息和图片素材来源于互联网,如内容侵权与违规,请联系我们进行删除,我们将在三个工作日内处理。联系邮箱:chuangshanghai#qq.com(把#换成@)