Html Helper in Meta tag |
As far as meta tag is refurnished ref: http://www.w3schools.com/tags/att_meta_charset.asp
the CI html helper is not updated ![]()
You can easy extend the html function as described at
https://ellislab.com/codeigniter/user-gu...lpers.html For you example you have to create a new file called MY_html_helper.php in the "/application/helper" directory with the following content: Code: <?php Now you can us this helper like that: Code: $this->load->helper('html'); (11-06-2014, 04:29 AM)Rufnex Wrote: You can easy extend the html function as described at Should this code be rolled into the main Codeigniter system, so everyone has access?
At the moment CI is generating HTML 4.1 valid output.
How ever you are right that HTML5 is already on stage. Perhaps those helpers needs to get an improvement to start supporting different HTML standards. Only this way we will have support over both HTML5 and HTML4 and all the future versions. Best VPS Hosting : Digital Ocean
(11-08-2014, 01:05 PM)sv3tli0 Wrote: At the moment CI is generating HTML 4.1 valid output. I have moved all my new development to HTML5. I understand the consequences to this, but it seems that the more people who move forward and keep going forward, the better adoption there will be of the more recent standards. Besides, most of the people still using 10 year old computers, are not the types to be buying or using new things. |
Welcome Guest, Not a member yet? Register Sign In |