我正在使用 CI 3.1.10。在 index.php 文件中我使用开发环境。
我的 Controller
<?php
class Test extends CI_Controller {
public function index(){
echo CI_VERSION;
}
}
?>
当我尝试访问测试类时,它会向我显示此错误
这是向我展示警告的图像。
Screenshot of the error is attached
最佳答案
ob_start();
在根目录下 index.php 的第一行。这有效。
关于codeigniter - ini_set() : Headers already sent. 此时无法在 codeigniter 中更改 session 模块的 ini 设置,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/60256450/