<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: Many Ways to Integrate HTML into PHP</title>
	<atom:link href="http://gulati.info/2010/01/many-ways-to-integrate-html-into-php/feed/" rel="self" type="application/rss+xml" />
	<link>http://gulati.info/2010/01/many-ways-to-integrate-html-into-php/</link>
	<description>Just another WordPress weblog</description>
	<lastBuildDate>Mon, 19 Jul 2010 23:15:32 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
	<item>
		<title>By: Austin</title>
		<link>http://gulati.info/2010/01/many-ways-to-integrate-html-into-php/comment-page-1/#comment-697</link>
		<dc:creator>Austin</dc:creator>
		<pubDate>Thu, 28 Jan 2010 10:05:11 +0000</pubDate>
		<guid isPermaLink="false">http://gulati.info/?p=1737#comment-697</guid>
		<description>@Nitin

I&#039;m glad to hear that I&#039;m not wrong in suggesting not to use &#039;&lt;?=&#039;! Thanks for your comment!

@Intrepidity

The code in your comment was removed by WordPress, so I&#039;m not sure what you&#039;re saying. Thanks for the comment though!

@Konstantin

Thanks for the comment. I agree with you! MVC still requires PHP to be inserted into HTML. And it&#039;s wrong to assume that anyone who doesn&#039;t use it is a &#039;complete knob&#039;. There are many times when MVC isn&#039;t the right solution.

@Rob

Nitin (above) said that he has used a server that has it disabled. I&#039;ve never worked with a server that had it disabled but I still think that it&#039;s safer to keep it out, especially if you are distributing code. Thanks for your comment!

@Iain

Thanks for your comment! I definitely agree with you on the MVC issue.

@Isabelle

That&#039;s definitely a method that works. I tend to stay away from doing things like that for smaller projects since it seems like overkill. I&#039;ve done it with larger projects, though. Thanks for your comment!</description>
		<content:encoded><![CDATA[<p>@Nitin</p>
<p>I&#8217;m glad to hear that I&#8217;m not wrong in suggesting not to use &#8216;&lt;?=&#8217;! Thanks for your comment!</p>
<p>@Intrepidity</p>
<p>The code in your comment was removed by WordPress, so I&#8217;m not sure what you&#8217;re saying. Thanks for the comment though!</p>
<p>@Konstantin</p>
<p>Thanks for the comment. I agree with you! MVC still requires PHP to be inserted into HTML. And it&#8217;s wrong to assume that anyone who doesn&#8217;t use it is a &#8216;complete knob&#8217;. There are many times when MVC isn&#8217;t the right solution.</p>
<p>@Rob</p>
<p>Nitin (above) said that he has used a server that has it disabled. I&#8217;ve never worked with a server that had it disabled but I still think that it&#8217;s safer to keep it out, especially if you are distributing code. Thanks for your comment!</p>
<p>@Iain</p>
<p>Thanks for your comment! I definitely agree with you on the MVC issue.</p>
<p>@Isabelle</p>
<p>That&#8217;s definitely a method that works. I tend to stay away from doing things like that for smaller projects since it seems like overkill. I&#8217;ve done it with larger projects, though. Thanks for your comment!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Isabelle</title>
		<link>http://gulati.info/2010/01/many-ways-to-integrate-html-into-php/comment-page-1/#comment-645</link>
		<dc:creator>Isabelle</dc:creator>
		<pubDate>Tue, 19 Jan 2010 23:30:13 +0000</pubDate>
		<guid isPermaLink="false">http://gulati.info/?p=1737#comment-645</guid>
		<description>I wrote myself a HTML engine.
I put every HTML tag into a PHP class and gave them the ability to render as html.
Currently i am writing a site kit to simplify the site coding.
Sepparation of back end and front end is defined by your discipline of sticking to MVC, not by sepparating HTML and PHP.</description>
		<content:encoded><![CDATA[<p>I wrote myself a HTML engine.<br />
I put every HTML tag into a PHP class and gave them the ability to render as html.<br />
Currently i am writing a site kit to simplify the site coding.<br />
Sepparation of back end and front end is defined by your discipline of sticking to MVC, not by sepparating HTML and PHP.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Iain</title>
		<link>http://gulati.info/2010/01/many-ways-to-integrate-html-into-php/comment-page-1/#comment-640</link>
		<dc:creator>Iain</dc:creator>
		<pubDate>Mon, 18 Jan 2010 14:21:30 +0000</pubDate>
		<guid isPermaLink="false">http://gulati.info/?p=1737#comment-640</guid>
		<description>Agree with everyone who ripped Greg a new one. Real-world and ideal-world are different places, and when he&#039;s had some real-world experience with large sites and large clients, he&#039;ll realise this.

Good article Austin - helpful for the new folk, for sure.</description>
		<content:encoded><![CDATA[<p>Agree with everyone who ripped Greg a new one. Real-world and ideal-world are different places, and when he&#8217;s had some real-world experience with large sites and large clients, he&#8217;ll realise this.</p>
<p>Good article Austin &#8211; helpful for the new folk, for sure.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: esaj</title>
		<link>http://gulati.info/2010/01/many-ways-to-integrate-html-into-php/comment-page-1/#comment-639</link>
		<dc:creator>esaj</dc:creator>
		<pubDate>Mon, 18 Jan 2010 11:31:30 +0000</pubDate>
		<guid isPermaLink="false">http://gulati.info/?p=1737#comment-639</guid>
		<description>@Greg -  If by &quot;knobs&quot; you mean those of us with the real-world experience to not be mindless followers, then you would not realize that MVC is child&#039;s toy, unlike the more nuanced enterprise architectures. Perhaps, once you&#039;ve coded for a few years, you&#039;ll realize that there are occasions that call for over-engineered frameworks, and situations where you have 30 minutes to create a solution before total annihilation.</description>
		<content:encoded><![CDATA[<p>@Greg &#8211;  If by &#8220;knobs&#8221; you mean those of us with the real-world experience to not be mindless followers, then you would not realize that MVC is child&#8217;s toy, unlike the more nuanced enterprise architectures. Perhaps, once you&#8217;ve coded for a few years, you&#8217;ll realize that there are occasions that call for over-engineered frameworks, and situations where you have 30 minutes to create a solution before total annihilation.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Rob</title>
		<link>http://gulati.info/2010/01/many-ways-to-integrate-html-into-php/comment-page-1/#comment-637</link>
		<dc:creator>Rob</dc:creator>
		<pubDate>Mon, 18 Jan 2010 09:55:19 +0000</pubDate>
		<guid isPermaLink="false">http://gulati.info/?p=1737#comment-637</guid>
		<description>The &lt;?= I thought was called the evaluation tag? Oddly I have been PHP-ing since 2000 and never came across a server that didn&#039;t have the evaluation tag turned on. I have seen many thank god that have the ASP % tags off.

Either way. In regards to the MVC fanboy comment, is it really necessary to use a full blown MVC framework if all you are doing is taking data from a form and sticking it into database? Isn&#039;t like rule #1 of being a good programmer is to re use code? You&#039;re saying that you have to use and MVC Framework to do basic CRUD cause you don&#039;t have your own code to re-use.</description>
		<content:encoded><![CDATA[<p>The &lt;?= I thought was called the evaluation tag? Oddly I have been PHP-ing since 2000 and never came across a server that didn&#8217;t have the evaluation tag turned on. I have seen many thank god that have the ASP % tags off.</p>
<p>Either way. In regards to the MVC fanboy comment, is it really necessary to use a full blown MVC framework if all you are doing is taking data from a form and sticking it into database? Isn&#8217;t like rule #1 of being a good programmer is to re use code? You&#8217;re saying that you have to use and MVC Framework to do basic CRUD cause you don&#8217;t have your own code to re-use.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Konstantin</title>
		<link>http://gulati.info/2010/01/many-ways-to-integrate-html-into-php/comment-page-1/#comment-636</link>
		<dc:creator>Konstantin</dc:creator>
		<pubDate>Mon, 18 Jan 2010 06:14:23 +0000</pubDate>
		<guid isPermaLink="false">http://gulati.info/?p=1737#comment-636</guid>
		<description>Greg, MVC? Really? So you must be not the &quot;complete knob&quot; for that matter ;) Well, as far as I know MVC does divide your logics and page layout, but how &quot;not knob&quot; is it to say that MVC cuts out php tags in your view? 

Who ever said that? Nobody knows exactly what MVC is, that&#039;s what the dev guys at Google said last year @ Google Developer Day, thus introducing the MVP (Model-View-Presenter) model ;)

But still, MVC, MVP, whatever. If I wanna put a damn title between my title tags in the head section of my html layout, how the hell am I supposed to do that without the php tags? Lemme guess - string replacement with a search for [my-title-goes-here] in the model? ;) Omg, are we back to Smarty?

Austin, Good post. ;)

Cheers,
~ K.</description>
		<content:encoded><![CDATA[<p>Greg, MVC? Really? So you must be not the &#8220;complete knob&#8221; for that matter ;) Well, as far as I know MVC does divide your logics and page layout, but how &#8220;not knob&#8221; is it to say that MVC cuts out php tags in your view? </p>
<p>Who ever said that? Nobody knows exactly what MVC is, that&#8217;s what the dev guys at Google said last year @ Google Developer Day, thus introducing the MVP (Model-View-Presenter) model ;)</p>
<p>But still, MVC, MVP, whatever. If I wanna put a damn title between my title tags in the head section of my html layout, how the hell am I supposed to do that without the php tags? Lemme guess &#8211; string replacement with a search for [my-title-goes-here] in the model? ;) Omg, are we back to Smarty?</p>
<p>Austin, Good post. ;)</p>
<p>Cheers,<br />
~ K.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Intrepidity</title>
		<link>http://gulati.info/2010/01/many-ways-to-integrate-html-into-php/comment-page-1/#comment-635</link>
		<dc:creator>Intrepidity</dc:creator>
		<pubDate>Mon, 18 Jan 2010 05:31:26 +0000</pubDate>
		<guid isPermaLink="false">http://gulati.info/?p=1737#comment-635</guid>
		<description>I use a template parser. But in the unlikely case that i should need to use pure PHP in a template i would use </description>
		<content:encoded><![CDATA[<p>I use a template parser. But in the unlikely case that i should need to use pure PHP in a template i would use</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Nitin Reddy Katkam</title>
		<link>http://gulati.info/2010/01/many-ways-to-integrate-html-into-php/comment-page-1/#comment-634</link>
		<dc:creator>Nitin Reddy Katkam</dc:creator>
		<pubDate>Mon, 18 Jan 2010 02:34:18 +0000</pubDate>
		<guid isPermaLink="false">http://gulati.info/?p=1737#comment-634</guid>
		<description>I use a combination of the &quot;Jump out of PHP&quot; method and heredoc/nowdoc.

I&#039;ve experienced the &quot;&lt;?=&quot; issue on a server with short_open_tag disabled (I believe it was on a recent version of XAMPP running on a Windows box) and ever since have been using echo instead to simplify deployment.</description>
		<content:encoded><![CDATA[<p>I use a combination of the &#8220;Jump out of PHP&#8221; method and heredoc/nowdoc.</p>
<p>I&#8217;ve experienced the &#8220;&lt;?=&quot; issue on a server with short_open_tag disabled (I believe it was on a recent version of XAMPP running on a Windows box) and ever since have been using echo instead to simplify deployment.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Austin</title>
		<link>http://gulati.info/2010/01/many-ways-to-integrate-html-into-php/comment-page-1/#comment-633</link>
		<dc:creator>Austin</dc:creator>
		<pubDate>Mon, 18 Jan 2010 02:02:05 +0000</pubDate>
		<guid isPermaLink="false">http://gulati.info/?p=1737#comment-633</guid>
		<description>@Greg - Well, I wouldn&#039;t say that everyone who doesn&#039;t use MVC is a complete knob. Thanks for the comment though!

@Trey - I decided to leave out heredoc syntax. Personally, I don&#039;t like it at all. I probably should include it for completeness, though. Thanks for the comment!

@sebounet - WordPress took out all of your code, so I&#039;m not sure what you&#039;re saying.

@Rob - Yeah, sorry that WordPress spliced your comments so bad. Using &lt;?= only works if short_open_tag is set to 1: &lt;a href=&quot;http://php.net/manual/en/ini.core.php&quot; rel=&quot;nofollow&quot;&gt;link&lt;/a&gt; (it&#039;s the first item on the page). So it&#039;s safer to just use &lt;?php echo unless you are sure that it will be enabled. Thanks for the comment!</description>
		<content:encoded><![CDATA[<p>@Greg &#8211; Well, I wouldn&#8217;t say that everyone who doesn&#8217;t use MVC is a complete knob. Thanks for the comment though!</p>
<p>@Trey &#8211; I decided to leave out heredoc syntax. Personally, I don&#8217;t like it at all. I probably should include it for completeness, though. Thanks for the comment!</p>
<p>@sebounet &#8211; WordPress took out all of your code, so I&#8217;m not sure what you&#8217;re saying.</p>
<p>@Rob &#8211; Yeah, sorry that WordPress spliced your comments so bad. Using &lt;?= only works if short_open_tag is set to 1: <a href="http://php.net/manual/en/ini.core.php" rel="nofollow">link</a> (it&#8217;s the first item on the page). So it&#8217;s safer to just use &lt;?php echo unless you are sure that it will be enabled. Thanks for the comment!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Rob</title>
		<link>http://gulati.info/2010/01/many-ways-to-integrate-html-into-php/comment-page-1/#comment-632</link>
		<dc:creator>Rob</dc:creator>
		<pubDate>Sun, 17 Jan 2010 19:32:15 +0000</pubDate>
		<guid isPermaLink="false">http://gulati.info/?p=1737#comment-632</guid>
		<description>Yes I use &lt;?= $var ?&gt; alot but I never see other people doing it. Is it wrong?

&lt;title&gt;&lt;?= $pageTitle ?&gt;&lt;/title&gt;

Seem pretty logical to me.

However to make things easier at work, we put all of our websites into a content system. Everything that is programming has to produce standard HTML UL/LI and DIVs and all things need to have a class name or similar. Then programming is wrapped into a tag, ex: {navigation}.

Designer then has to style with CSS the output. My company used to work design first then developer. Everytime it went wrong. Develop first designer later works better and faster.</description>
		<content:encoded><![CDATA[<p>Yes I use &lt;?= $var ?&gt; alot but I never see other people doing it. Is it wrong?</p>
<p>&lt;title&gt;&lt;?= $pageTitle ?&gt;&lt;/title&gt;</p>
<p>Seem pretty logical to me.</p>
<p>However to make things easier at work, we put all of our websites into a content system. Everything that is programming has to produce standard HTML UL/LI and DIVs and all things need to have a class name or similar. Then programming is wrapped into a tag, ex: {navigation}.</p>
<p>Designer then has to style with CSS the output. My company used to work design first then developer. Everytime it went wrong. Develop first designer later works better and faster.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
