<?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"
	>
<channel>
	<title>Comments on: A simple PHP HTML/CSS templating system (REDUX)</title>
	<atom:link href="http://imgiseverything.co.uk/2008/06/06/php-html-templates/feed/" rel="self" type="application/rss+xml" />
	<link>http://imgiseverything.co.uk/2008/06/06/php-html-templates/</link>
	<description>Manchester web designer Phil Thompson</description>
	<pubDate>Wed, 03 Dec 2008 23:30:08 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.6.2</generator>
		<item>
		<title>By: David Goodwin</title>
		<link>http://imgiseverything.co.uk/2008/06/06/php-html-templates/#comment-96682</link>
		<dc:creator>David Goodwin</dc:creator>
		<pubDate>Thu, 10 Jul 2008 14:53:50 +0000</pubDate>
		<guid isPermaLink="false">http://imgiseverything.co.uk/?p=259#comment-96682</guid>
		<description>Smarty++

(But that's just because we've a large stack of working / additional code based upon it)</description>
		<content:encoded><![CDATA[<p>Smarty++</p>
<p>(But that&#8217;s just because we&#8217;ve a large stack of working / additional code based upon it)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: phil</title>
		<link>http://imgiseverything.co.uk/2008/06/06/php-html-templates/#comment-95054</link>
		<dc:creator>phil</dc:creator>
		<pubDate>Thu, 03 Jul 2008 15:17:47 +0000</pubDate>
		<guid isPermaLink="false">http://imgiseverything.co.uk/?p=259#comment-95054</guid>
		<description>@Vinny: I'm confused as to what your point of view is. You seem both annoyed that this is an old topic yet pleased that it is being brought up again.</description>
		<content:encoded><![CDATA[<p>@Vinny: I&#8217;m confused as to what your point of view is. You seem both annoyed that this is an old topic yet pleased that it is being brought up again.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Vinny</title>
		<link>http://imgiseverything.co.uk/2008/06/06/php-html-templates/#comment-95051</link>
		<dc:creator>Vinny</dc:creator>
		<pubDate>Thu, 03 Jul 2008 14:57:33 +0000</pubDate>
		<guid isPermaLink="false">http://imgiseverything.co.uk/?p=259#comment-95051</guid>
		<description>Good to see that more ppl finally start using this habit of dividing pages into included parts.

But it was certainly not God that invented it

It's a good point mentioning it again. but the Idea is already SO OLD</description>
		<content:encoded><![CDATA[<p>Good to see that more ppl finally start using this habit of dividing pages into included parts.</p>
<p>But it was certainly not God that invented it</p>
<p>It&#8217;s a good point mentioning it again. but the Idea is already SO OLD</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: daewoo</title>
		<link>http://imgiseverything.co.uk/2008/06/06/php-html-templates/#comment-92613</link>
		<dc:creator>daewoo</dc:creator>
		<pubDate>Sun, 22 Jun 2008 19:58:00 +0000</pubDate>
		<guid isPermaLink="false">http://imgiseverything.co.uk/?p=259#comment-92613</guid>
		<description>@Phil
Similar principles to javascript Dom (but serverside.) Basically, allows you to manipulate XML docs to W3C DOM spec.
Have a look here http://uk3.php.net/dom.</description>
		<content:encoded><![CDATA[<p>@Phil<br />
Similar principles to javascript Dom (but serverside.) Basically, allows you to manipulate XML docs to W3C DOM spec.<br />
Have a look here <a href="http://uk3.php.net/dom" rel="nofollow">http://uk3.php.net/dom</a>.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: phil</title>
		<link>http://imgiseverything.co.uk/2008/06/06/php-html-templates/#comment-91964</link>
		<dc:creator>phil</dc:creator>
		<pubDate>Fri, 20 Jun 2008 07:50:57 +0000</pubDate>
		<guid isPermaLink="false">http://imgiseverything.co.uk/?p=259#comment-91964</guid>
		<description>@Sean-Paul: 

1: There is a mistake in the code, it should be
&lt;code&gt;$objTemplate-&gt;setExtraBehaviour("$(document).ready(function(){$('#paragraph').addClass('example');});");&lt;/code&gt; note the &lt;strong&gt;'&lt;/strong&gt; after &lt;code&gt;#paragraph&lt;/code&gt;, I'll fix the example.

2: You can just include the header and the footer file and that will work great in most cases. A lot of people even include the Doctype at the top of their pages instead of putting that in a header file. The beauty of this approach is that you can suddenly switch which header file to include based upon any number of factors. 

I'll be honest and say this OOP approach's advantages over a procedural approach can be difficult to see and that's because they're not that big. The code looks nicer and OOP is flavour of the day. Using this template, you'll hoping find updating/creating basic websites much quicker.</description>
		<content:encoded><![CDATA[<p>@Sean-Paul: </p>
<p>1: There is a mistake in the code, it should be<br />
<code>$objTemplate->setExtraBehaviour("$(document).ready(function(){$('#paragraph').addClass('example');});");</code> note the <strong>&#8216;</strong> after <code>#paragraph</code>, I&#8217;ll fix the example.</p>
<p>2: You can just include the header and the footer file and that will work great in most cases. A lot of people even include the Doctype at the top of their pages instead of putting that in a header file. The beauty of this approach is that you can suddenly switch which header file to include based upon any number of factors. </p>
<p>I&#8217;ll be honest and say this OOP approach&#8217;s advantages over a procedural approach can be difficult to see and that&#8217;s because they&#8217;re not that big. The code looks nicer and OOP is flavour of the day. Using this template, you&#8217;ll hoping find updating/creating basic websites much quicker.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Sean-Paul</title>
		<link>http://imgiseverything.co.uk/2008/06/06/php-html-templates/#comment-91883</link>
		<dc:creator>Sean-Paul</dc:creator>
		<pubDate>Fri, 20 Jun 2008 00:08:51 +0000</pubDate>
		<guid isPermaLink="false">http://imgiseverything.co.uk/?p=259#comment-91883</guid>
		<description>This looks great. I have been searching for a good template to build my website (v2) on. I have tow questions:

1. The code seems to work fine if I comment out --&#62;  $objTemplate-&#62;setExtraBehaviour("$(document).ready(function(){$('#paragraph").addClass('example');});");  Any idea why?

2. *Noob Alert* But why not just include the footer file and header file? Why go through the trouble of using OOP for a template? Like I said, noob, but I have seen it used over and over and never quite understood the benefit.

Thanks for your time and contribution! -SP</description>
		<content:encoded><![CDATA[<p>This looks great. I have been searching for a good template to build my website (v2) on. I have tow questions:</p>
<p>1. The code seems to work fine if I comment out &#8211;&gt;  $objTemplate-&gt;setExtraBehaviour(&#8221;$(document).ready(function(){$(&#8217;#paragraph&#8221;).addClass(&#8217;example&#8217;);});&#8221;);  Any idea why?</p>
<p>2. *Noob Alert* But why not just include the footer file and header file? Why go through the trouble of using OOP for a template? Like I said, noob, but I have seen it used over and over and never quite understood the benefit.</p>
<p>Thanks for your time and contribution! -SP</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: phil</title>
		<link>http://imgiseverything.co.uk/2008/06/06/php-html-templates/#comment-91510</link>
		<dc:creator>phil</dc:creator>
		<pubDate>Wed, 18 Jun 2008 17:05:05 +0000</pubDate>
		<guid isPermaLink="false">http://imgiseverything.co.uk/?p=259#comment-91510</guid>
		<description>@Daewoo: Ta for the tip. I'm not familiar with php DOM is it similar to  &lt;a href="http://davidwalsh.name/create-html-elements-php-htmlelement-class" rel="nofollow"&gt;html_element class&lt;/a&gt; by David Walsh</description>
		<content:encoded><![CDATA[<p>@Daewoo: Ta for the tip. I&#8217;m not familiar with php DOM is it similar to  <a href="http://davidwalsh.name/create-html-elements-php-htmlelement-class" rel="nofollow" onclick="javascript:pageTracker._trackPageview ('/outbound/davidwalsh.name');">html_element class</a> by David Walsh</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: DaeWoo</title>
		<link>http://imgiseverything.co.uk/2008/06/06/php-html-templates/#comment-91457</link>
		<dc:creator>DaeWoo</dc:creator>
		<pubDate>Wed, 18 Jun 2008 11:19:29 +0000</pubDate>
		<guid isPermaLink="false">http://imgiseverything.co.uk/?p=259#comment-91457</guid>
		<description>Nice work. And clean, notation as well, habit I've got to get into. Have you thought of using php DOM (compiled with PHP 5), I'm building a similar tmeplate system at the moment using it, which lets you insert html elements on the fly (just in case you missed something).
Can send you a copy of the class if you want it.
Keep up the good work.
D</description>
		<content:encoded><![CDATA[<p>Nice work. And clean, notation as well, habit I&#8217;ve got to get into. Have you thought of using php DOM (compiled with PHP 5), I&#8217;m building a similar tmeplate system at the moment using it, which lets you insert html elements on the fly (just in case you missed something).<br />
Can send you a copy of the class if you want it.<br />
Keep up the good work.<br />
D</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: phil</title>
		<link>http://imgiseverything.co.uk/2008/06/06/php-html-templates/#comment-90994</link>
		<dc:creator>phil</dc:creator>
		<pubDate>Mon, 16 Jun 2008 16:59:33 +0000</pubDate>
		<guid isPermaLink="false">http://imgiseverything.co.uk/?p=259#comment-90994</guid>
		<description>@louis w: I like the way you think. The current class does allow a (rather clunky) way around with the setExtraStyle method e.g:

$objTemplate-&gt;setExtraStyle('@import url("/style/print.css") print;'); 

or

$objTemplate-&gt;setExtraStyle('@media print{ css{rule: goes-here;} }');

but your way is better!</description>
		<content:encoded><![CDATA[<p>@louis w: I like the way you think. The current class does allow a (rather clunky) way around with the setExtraStyle method e.g:</p>
<p>$objTemplate->setExtraStyle(&#8217;@import url(&#8221;/style/print.css&#8221;) print;&#8217;); </p>
<p>or</p>
<p>$objTemplate->setExtraStyle(&#8217;@media print{ css{rule: goes-here;} }&#8217;);</p>
<p>but your way is better!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: louis w</title>
		<link>http://imgiseverything.co.uk/2008/06/06/php-html-templates/#comment-90992</link>
		<dc:creator>louis w</dc:creator>
		<pubDate>Mon, 16 Jun 2008 16:53:55 +0000</pubDate>
		<guid isPermaLink="false">http://imgiseverything.co.uk/?p=259#comment-90992</guid>
		<description>Very simple and gets the job done. Good work.

About choosing a media type for the css, I would do this:

$objTemplate-&#62;setStyle(array('home','forms'), 'screen');
$objTemplate-&#62;setStyle('print', 'print');</description>
		<content:encoded><![CDATA[<p>Very simple and gets the job done. Good work.</p>
<p>About choosing a media type for the css, I would do this:</p>
<p>$objTemplate-&gt;setStyle(array(&#8217;home&#8217;,'forms&#8217;), &#8217;screen&#8217;);<br />
$objTemplate-&gt;setStyle(&#8217;print&#8217;, &#8216;print&#8217;);</p>
]]></content:encoded>
	</item>
</channel>
</rss>
