我在重定向index到函数logotyp或tiskoviny. 当我向浏览器 ( ) 写入时,localhost/my_page/sluzby/logotyp它可以工作,但没有 CSS 显示(这是第二个问题)。URL Helper是自动加载的。
class Sluzby extends CI_Controller {
    public function __construct()
    {
        parent::__construct();
        $this->load->library('uri');
        $this->load->model('sluzby_model');
        $this->load->model('pages');
    }
    public function index()
    {
        redirect('sluzby/logotyp');
    }
    public function logotyp()
    {
        $data['nadpis'] = "SomeText";
        $this->basic_template->view('basic', 'sluzby_view',$data);
    }
    public function tiskoviny()
    {
        $data['nadpis'] = "SomeText";
        $this->basic_template->view('basic', 'sluzby_view',$data);
    }
}
当我想从索引重定向时,浏览器向我显示此错误:
<p>Severity: Warning<br>
Message:  Cannot modify header information - headers already sent by (output started at C:\Program Files\VertrigoServ\www\dsvision\application\controllers\sluzby.php:1)<br>
Filename: helpers/url_helper.php<br>
Line Number: 542</p>
感谢帮助。