我将 Ion_auth 与 codeigniter 一起使用。我有以下内容:
if ($this->form_validation->run() == true && $this->ion_auth->register($username, $password, $email, $additional_data))
{
//check to see if we are creating the user
$this->session->set_flashdata('message', 'PLEASE CHECK EMAIL');
redirect("auth", 'refresh');
在我的 wamp 开发环境中,这可以很好地重定向到“auth”控制器。但我只是在远程网站上得到一个空白屏幕。
关于下一步做什么的任何想法?
附录:
我已将错误报告更改为生产站点上的最高级别,现在得到:
严重性:警告
Message: Cannot modify header information - headers already sent by (output started at /mydomain.com/application/config/production/database.php:1)
Filename: libraries/Session.php
Line Number: 675
严重性:警告
Message: Cannot modify header information - headers already sent by (output started at mydomain.com/application/config/production/database.php:1)
Filename: helpers/url_helper.php
Line Number: 540