Home  >  Article  >  Backend Development  >  php-Call to a member function assign() on

php-Call to a member function assign() on

WBOY
WBOYOriginal
2016-06-02 11:32:221504browse

phpassign

在rms_report_function.php中调用get_rms_report函数,没有问题,我写了另一个php,代码如下:
require(DIR_ROOT.DIR_RMS.'rms_report/rms_report_function.php');
$shop_array = array();

$shop_array = get_rms_report('002');

echo json_encode($shop_array);
然后就报错:
Fatal error: Call to a member function assign() on a non-object in
这种情况该怎么解决呢?

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn