Notice:array to String conversion
This post was last edited by xusheng890331 on 2014-01-06 13:13:27
The following error appears in the website to ask how to solve it?
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->smarty->assign ($vnum, $this->pagemodel->query->result_array ());
$this->smarty->assign (' Mainid ', ' thediv '. $this->p);
}
Share to: more
------Solution--------------------
Var_dump ($vnum);
Look what it is.
------Solution--------------------
function Showpagev ($id, $vnum)
{
$this->pagemodel->id= $id;
Var_dump ($vnum);
Print_r ($this->pagemodel->query->result_array ());d ie ();
$this->smarty->assign ($vnum, $this->pagemodel->query->result_array ());
$this->smarty->assign (' Mainid ', ' thediv '. $this->p);
}