我正在使用 CodeIgniter,我一直从配置文件中得到一个错误
A PHP Error was encountered
Severity: Warning
Message: constant() [function.constant]: Couldn't find constant ONLINE
Filename: libraries/co.php
Line Number: 534
A PHP Error was encountered
Severity: Warning
Message: Cannot modify header information - headers already sent by (output started at /home/baahoot/public_html/Outlaws/system/core/Exceptions.php:185)
Filename: helpers/url_helper.php
Line Number: 542
我不确定我做错了什么这是来自 git hub 的工作代码。我是 php 新手,想看看这在使用 mysql db 的 arvixe 服务器上是如何工作的,有人知道如何解决这种类型的错误吗?
图书馆/co.php 某处:534
function __construct() {
$CI =& get_instance();
//$CI->form_validation->set_error_delimiters( '<br /><div class="response error-note">Error: ', '</div>' );
if(constant('ONLINE') == FALSE):
//$CI->output->enable_profiler(TRUE); endif;
if(1 == 0 && constant('ONLINE') == TRUE ) {
echo $CI->load->view('temporary', '', true); exit;
} $CI->load->config('redis');
$this->redis = ($CI->config->item('redis_active'));
}