【发布时间】:2012-01-10 15:36:31
【问题描述】:
我有class MY_Controller extends CI_Controller 和大型配置文件部分的通用逻辑,所以我尝试使用配置文件部分的通用逻辑创建class Profile extends MY_Controller,并且所有与此部分相关的类都应该扩展此配置文件类,因为我理解正确,但是当我尝试创建 class Index extends Profile 时,我收到一个错误:
Fatal error: Class 'Profile' not found
CodeIgniter 试图在我正在运行的index.php 中找到这个类。
我的错误在哪里?或者也许有其他更好的方法来标记常见的逻辑?
【问题讨论】:
-
我问了同样的问题 [这里][1] [1]:stackoverflow.com/questions/7982187/…希望它有所帮助
标签: php codeigniter codeigniter-2