I have problem redirecting from index to the functions logotyp or tiskoviny. When I write to the browser (localhost/my_page/sluzby/logotyp) it works but it show without CSS (this is the second problem). The URL Helper is auto-loaded.
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);
    }
}
The browser shows me this error when I want to redirect from index:
<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>
Thanks for help.
 
     
    