![]() |
Customizing Title and Meta Tag for SEO - 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: Customizing Title and Meta Tag for SEO (/showthread.php?tid=53215) Pages:
1
2
|
Customizing Title and Meta Tag for SEO - El Forum - 07-17-2012 [eluser]Rolly1971[/eluser] please note that the following is just my personal opinion. Code: <?php why on god's green earth are you echoing the meta tags using php????? what's wrong with you???? this drives me spare, when i see these types echo statements it makes me wanna barf. there are times and places to do this stuff, and in a view file is NOT imho the time to do this. personally i think it looks cleaner and is just better written like this: Code: <META http-equiv="Content-Type" content="text/html; charset=utf-8" /> sorry for the nit picking rant. Customizing Title and Meta Tag for SEO - El Forum - 07-17-2012 [eluser]cideveloper[/eluser] @Rolly1971. You are absolutely correct. View files should have as little php in them as to make the page functional. Loops, echoing variables, and conditional structures. If you are going to start echoing html you might as well have db access in the view as well. Customizing Title and Meta Tag for SEO - El Forum - 07-18-2012 [eluser]boltsabre[/eluser] Not only that, but concatenation takes longer to process, just echo the variable out directly! |