I am getting this error only: My redirection code is:
$this->session->set_flashdata('site_flash', '<div class="alert alert-success">Thank you for registering with us.</div>');
redirect(site_url('site/complete_registration'));
Severity: Warning
Message: Cannot modify header information - headers already sent by (output started at /home/btcearning/public_html/login/system/core/Exceptions.php:271)
Filename: controllers/Site.php
Line Number: 279
Backtrace:
File: /home/btcearning/public_html/login/application/controllers/Site.php Line: 279 Function: header
File: /home/btcearning/public_html/login/index.php Line: 224 Function: require_once