am using CodeIgniter and i keep get a error from the config file
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
i am not sure what i am doing wrong this is a working code from git hub. I am new to php and would like to see how this worked on arvixe server using the mysql db anyone know how to fix this type of error??
libraries/co.php somewhere around :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'));
}