Welcome Guest, Not a member yet? Register   Sign In
Meta element makes view load twice
#1

[eluser]Unknown[/eluser]
Hi everyone!

I have been reading a lot about the "view loading twice" problem, but I haven't found a solution yet. As many others I have the problem, that a view is loaded twice. The view includes the html header and is called on almost every page of the website by the following line in each controller:

Code:
$this->load->view('kopf',$data);

After I spent a lot of time with "trial and error" I found out that the line

Code:
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">

causes the Problem in the view. When I delete the line, the view only loads once. If I add it again, the view loads twice again.

This is the address of the website:

http://www.gruppenfahrt.de

Does anybody have an idea why this line causes this problem? And how can I solve it?




Theme © iAndrew 2016 - Forum software by © MyBB