dongxun3777
2016-06-10 03:34
浏览 83
已采纳

在服务器CodeIgniter上找不到My_Controller

Dear: helper i run on wamp local server is working fine but i have problem with My_Controller is not found is core folder. I already insert My_Controller in core folder "core/My_Controller.php" and in config.php i already insert config too "$config['subclass_prefix'] = 'MY_';" anyone help me please?

Fatal error: Class 'MY_Controller' not found in /home/phnompen/public_html/my_side_url/application/controllers/Controller.php on line 9

A PHP Error was encountered

Severity: Error

Message: Class 'MY_Controller' not found

Filename: controllers/Controller.php

Line Number: 9

Backtrace:

图片转代码服务由CSDN问答提供 功能建议

亲爱的:帮助我在wamp本地服务器上运行工作正常但我遇到问题My_Controller未找到是核心文件夹 。 我已经在核心文件夹“core / My_Controller.php”中插入了My_Controller,在config.php中我已经插入了配置“$ config ['subclass_prefix'] ='MY _';”有人帮我吗?

 致命错误:第9行/home/phnompen/public_html/my_side_url/application/controllers/Controller.php中找不到类'MY_Controller'  
 
遇到PHP错误
 
Severity:错误
 
消息:未找到类'MY_Controller'
 
文件名:controllers / Controller.php 
 
Line编号:9 
 
Backtrace:
 <  / code>  
 
  • 写回答
  • 关注问题
  • 收藏
  • 邀请回答

1条回答 默认 最新

  • dongtuo5611 2016-06-10 04:05
    已采纳

    Make you you have the MY in your file name not My

    core/My_Controller.php
    

    Change to

    core/MY_Controller.php
    

    Same as in my comment.

    打赏 评论

相关推荐 更多相似问题