ini_set():标头已发送。您目前无法在codeigniter

问题描述 投票:0回答:1
中更改会话模块的ini设置。

我正在使用CI 3.1.10。在index.php文件中,我使用开发环境。

我的控制器

<?php
class Test extends CI_Controller {
public function index(){
    echo CI_VERSION; 
 }
}

?>

当我尝试访问测试类时,它将显示此错误

这是向我显示警告的图像。

Screenshot of the error is attached

codeigniter header ini-set
1个回答
0
投票

从控制器中删除关闭标签?>然后检查

© www.soinside.com 2019 - 2024. All rights reserved.