Notice: Arraytostringconversion This post was last edited by xusheng890331 from 2014-01-0613: 13: 27. the following error occurs on the website. how can I solve this problem? A & nbsp; PHP & nbsp; Error & nbsp; was & nbsp; encounteredSeverity: & nbsp; Not Notice: Array to string conversion
This post was last edited by xusheng890331 at 13:13:27
The following error occurs on the website. how can this problem be solved?
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);
}
Share: More
------ Solution --------------------
Var_dump ($ vnum );
See what it is
------ Solution --------------------
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);
}