Meta element makes view load twice - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20) +--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forumdisplay.php?fid=23) +--- Thread: Meta element makes view load twice (/showthread.php?tid=46951) |
Meta element makes view load twice - El Forum - 11-21-2011 [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? |