Welcome Guest, Not a member yet? Register   Sign In
Adherence To CI Style Guide
#3

[eluser]Randy Casburn[/eluser]
To each his/her own really? Since v5 was mentioned, would it not be fair to mention SimpleXML as one alternative to the brow beating posed by zippy? Put your template in a separate file where it belongs and read it using a parser built to do such things. Or, you can put it into a string which I'm assuming you're doing anyway. But like Nick says, have it parsed by the XML parser, not the PHP parser.

When I googled "php xml parser sitepoint" this article came up: http://www.sitepoint.com/article/php-xml...rss-1-0/2/

So if you like short tags, by all means, you have alternatives. On the other hand, if you don't, then you don't need any ;-)

Just a thought.

Randy


Messages In This Thread
Adherence To CI Style Guide - by El Forum - 12-06-2008, 12:43 PM
Adherence To CI Style Guide - by El Forum - 12-06-2008, 05:11 PM
Adherence To CI Style Guide - by El Forum - 12-06-2008, 07:05 PM
Adherence To CI Style Guide - by El Forum - 12-06-2008, 10:17 PM
Adherence To CI Style Guide - by El Forum - 12-10-2008, 11:53 AM



Theme © iAndrew 2016 - Forum software by © MyBB