codeigniter - Wrong view html rendering -


i have view codeigniter:

<!doctype html> <html> <head>   <link rel="stylesheet" type="text/css" href="<?php echo base_url();?>assets/bootstrap/css2/bootstrap.css"/> <title>example</title> </head>  <body> <p>hello</p> </body> </html> 

and controller:

<?php if ( ! defined('basepath')) exit('no direct script access allowed');  class merc_inicio extends ci_controller {      function index()     {         $this->load->view('plantilla');     } }     ?> 

so in ie8 , firefox renderization is:

<html> <head> </head> <body>     <link href="http://10.66.130.131/mercurio_p/assets/bootstrap/css2/bootstrap.css" type="text/css" rel="stylesheet"></link> <title>       example </title> <p>hello</p> </body> </html> 

why head tags beig renderized inside body tags? don't know happening. you?

you must save files utf-8 without bom


Comments

Popular posts from this blog

java.util.scanner - How to read and add only numbers to array from a text file -

rewrite - Trouble with Wordpress multiple custom querystrings -

debian - 500 Error upon login into Plesk Admin - auth.php3? -