Php Codeigniter-call_user_func_array()希望参数1是有效的回调类';错误';没有方法';指数';
我已经在CodeIgniter上开发了一个交付服务应用程序,它在本地主机上运行,没有任何错误(使用MAMP Pro) 现在我已经决定将它上传到我在Dreamhost的域中,我已经配置了它,成功登录,但是当我点击客户或员工时,它给出了以下错误 遇到一个PHP错误 严重性:警告 消息:call\u user\u func\u array()要求参数1是有效的 回调,类“Error”没有方法“index” 文件名:core/CodeIgniter.php 电话号码:532 回溯: 文件:/home/dh_yg2qtz/aquamanager/index.php行:315函数: 需要一次 我的客户型号代码是:Php Codeigniter-call_user_func_array()希望参数1是有效的回调类';错误';没有方法';指数';,php,codeigniter,Php,Codeigniter,我已经在CodeIgniter上开发了一个交付服务应用程序,它在本地主机上运行,没有任何错误(使用MAMP Pro) 现在我已经决定将它上传到我在Dreamhost的域中,我已经配置了它,成功登录,但是当我点击客户或员工时,它给出了以下错误 遇到一个PHP错误 严重性:警告 消息:call\u user\u func\u array()要求参数1是有效的 回调,类“Error”没有方法“index” 文件名:core/CodeIgniter.php 电话号码:532 回溯: 文件:/home/d
class customer extends BaseController {
var $ascustr = 'ASCU-';
public function __construct()
{
parent::__construct();
//$this->load->helper('form');
$this->load->library('form_validation');
$this->load->model('user_model');
$this->isLoggedIn();
$this->load->helper('url');
$this->load->model('customer_model','customer');
}
public function index()
{
$this->global['pageTitle'] = 'CodeInsect : Customer Managemwnt';
$customers=$this->customer->get_all_customers();
//$products=$this->customer->get_all_products();
$deliverydays=$this->customer->get_all_deliverydays();
$employees=$this->customer->get_all_employees();
$referenceperson=$this->customer->get_all_references();
$data ['customers'] = $customers;
$data ['deliverydays'] = $deliverydays;
$data ['employees'] = $employees;
$data ['referenceperson'] = $referenceperson;
$this->loadCustomers("/customers/customer_view", $this->global, $data, NULL);
//$this->loadViews("customers/customer_view", $this->global, $data);
}
请帮助我解决这个问题,我将非常感谢您。您能说明在哪里以及如何调用php函数call\u user\u func\u array()?您是否尝试在调用它的位置进行调试?在本地环境中,它工作正常,没有任何问题。您的托管环境中显然存在差异。所以你需要找到它是什么。无论如何,我们目前无法真正帮助您,因为您没有向我们展示包含call\u user\u func\u array()用法的代码。请显示该代码(托管环境中的版本)。为什么您的类将所有小写字母拼写为customer而不是大写字母,所以它应该是customer,而且文件名的大小写也很重要。如果您是在Windows上开发的,然后上传到apache/linux服务器,那么情况应该是正确的;