代码如下,一个controller
PHP复制代码
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
class Admin extends CI_Controller {
function __construct (){
parent ::__construct ();
$this->load->database();
$this->load->helper('url');
$this->load->library('pagination');
date_default_timezone_set('Asia/Shanghai');
}
function index (){
redirect ('login/');
}
复制代码
我直接访问http://www.example.com/ci/admin
报错,信息为。
A PHP Error was encounteredSeverity: Warning Message: Cannot modify header information - headers already sent by (output started at D:\AppServ\www\ci\application\controllers\admin.php:1) Filename: helpers/url_helper.php Line Number: 546 我想知道,我这些地方哪里有输出呢?
|