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
Post a Comment