所以基本上,下面的代碼是我現在所擁有的:笨是CI_Controller沒有找到
class MY_Log extends CI_Log {
/**
* Variable storing the CodeIgniter instance.
*
* @access private
* @since v0.1.0.0
*/
private $CI;
/**
* Constructor for later use by internal
* methods.
*
* @access public
* @since v0.1.0.0
*/
public function __construct()
{
// Extend the parent logging.
parent::__construct();
$this->$CI =& get_instance();
}
}
我碰到下面的錯誤;
Fatal error: Class 'CI_Controller' not found in /<deleted>/system/core/CodeIgniter.php on line 233
這是有點用戶指南如何描述它。
您的文件系統中是否存在system/core/Controller.php文件? – dakdad 2012-01-16 10:47:11
是的,第233行是: 返回CI_Controller :: get_instance();的 – Roel 2012-01-16 10:49:06
可能重複[笨:類「是CI_Controller」未找到(http://stackoverflow.com/questions/6758681/codeigniter-class-ci-controller-not-found) – cweiske 2012-01-16 10:49:58