本帖最后由 lantian0811 于 2011-6-29 16:13 编辑
今天写了一个小程序,出现了这样的问题,我查了网上说是bom的问题,按照所说的不包括了bom,还是出现同样地问题A PHP Error was encounteredSeverity: Warning
Message: Cannot modify header information - headers already sent by (output started at D:\xampp\htdocs\spiderCM\system\application\controllers\blog.php:2)
Filename: libraries/Session.php
Line Number: 662
A PHP Error was encounteredSeverity: Warning Message: Cannot modify header information - headers already sent by (output started at D:\xampp\htdocs\spiderCM\system\application\controllers\blog.php:2) Filename: codeigniter/Common.php Line Number: 360
blog.php的源码如下
PHP复制代码
<?php[/color]
class blog extends Controller {
function __construct()
{
parent::__construct();
$this->load->model('blogmodel');
}
function blog_category()
{
$data['category'] = $this->blogmodel->getpeopleinfo();
$this->load->view("blogview",$data);
}
}
?>
复制代码
<?php 那一行报错,很奇怪,求高手解释
|