|
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
class Cart extends CI_Controller {
public function index()
{
echo 'dd';
}
function _remap($method)
{
if ($method == 's')
{
$this->$method();
}
else
{
$this->c();
}
}
function s()
{
echo 'ddd';
}
function c()
{
echo 'd';
}
}
提示错误了:
Message: Cannot modify header information - headers already sent by
请问这是怎么回事,该如何使用这个函数?
|
|