#1 懷♀唸
代码:$this->data=spDB("caigouhead")->findSql("select a.*,b.name from ".$GLOBALS['G_SP']['db']['prefix']."caigouhead as a left join ".$GLOBALS['G_SP']['db']['prefix']."warehouse b on a.warehouse_id=b.id where a.sn like '%".$this->spArgs("keywords")."%'");出这种错误一般是什么原因?
$res=array("error"=>"0","content"=>$this->getView()->fetch("caigou/caigou.html"));
Fatal error: Call to a member function fetch() on a non-object
怎么会获取不到对象呢?也可以直接输出变量data的内容。
2013-04-04 11:10:35