<?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: CSS, HTML, and some PHP - part 2</title>
	<atom:link href="http://www.how-to-css.com/css/css-html-and-some-php-part-2/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.how-to-css.com/css/css-html-and-some-php-part-2/</link>
	<description>How to use CSS to make your website better.</description>
	<pubDate>Wed, 10 Mar 2010 08:56:10 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.6.2</generator>
		<item>
		<title>By: Josip</title>
		<link>http://www.how-to-css.com/css/css-html-and-some-php-part-2/#comment-77</link>
		<dc:creator>Josip</dc:creator>
		<pubDate>Wed, 18 Mar 2009 10:50:51 +0000</pubDate>
		<guid isPermaLink="false">http://www.how-to-css.com/?p=61#comment-77</guid>
		<description>Smarty is OK for splitting presentation and logic but can cause a lot of problems later in production environment. 
I had alot of problems with smarty cache files, because the technical user has no "write" rights in the production environment. This means – I have to run each and every template on the dev machine (so that the cached templates are created) and copy the cached templates (templates_c) to webserver. If I forget to run a certain page locally (which happens often if you have a big project) this page want be shown - all you will get is the “Unable to write to … directory” smarty error.  Because of this you also can't change smarty templates dynamically with java script (e.g inner HTML). I know, the main cause of this problem are the user access settings from my provider, but this is something what I can't change so that is why I'm not using smarty templates anymore.</description>
		<content:encoded><![CDATA[<p>Smarty is OK for splitting presentation and logic but can cause a lot of problems later in production environment.<br />
I had alot of problems with smarty cache files, because the technical user has no &#8220;write&#8221; rights in the production environment. This means – I have to run each and every template on the dev machine (so that the cached templates are created) and copy the cached templates (templates_c) to webserver. If I forget to run a certain page locally (which happens often if you have a big project) this page want be shown - all you will get is the “Unable to write to … directory” smarty error.  Because of this you also can&#8217;t change smarty templates dynamically with java script (e.g inner HTML). I know, the main cause of this problem are the user access settings from my provider, but this is something what I can&#8217;t change so that is why I&#8217;m not using smarty templates anymore.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Nicholas</title>
		<link>http://www.how-to-css.com/css/css-html-and-some-php-part-2/#comment-38</link>
		<dc:creator>Nicholas</dc:creator>
		<pubDate>Mon, 17 Nov 2008 06:49:59 +0000</pubDate>
		<guid isPermaLink="false">http://www.how-to-css.com/?p=61#comment-38</guid>
		<description>Rather than inserting  directly into your markup, why don't you separate logic and presentation with a templating engine like &lt;a href="http://smarty.net/" rel="nofollow"&gt;Smarty&lt;/a&gt; or &lt;a href="http://trac.php-tools.net/patTemplate" rel="nofollow"&gt;patTemplate&lt;/a&gt;? 

Makes everything MUCH cleaner and a great deal simpler when those two layers are clearly separate. It eases maintenance and dealing with unforeseen scalability issues. 

I would suggest Smarty, personally. Guarantee that you'll absolutely fall in love with the concept once you give it a shot.</description>
		<content:encoded><![CDATA[<p>Rather than inserting  directly into your markup, why don&#8217;t you separate logic and presentation with a templating engine like <a href="http://smarty.net/" rel="nofollow">Smarty</a> or <a href="http://trac.php-tools.net/patTemplate" rel="nofollow">patTemplate</a>? </p>
<p>Makes everything MUCH cleaner and a great deal simpler when those two layers are clearly separate. It eases maintenance and dealing with unforeseen scalability issues. </p>
<p>I would suggest Smarty, personally. Guarantee that you&#8217;ll absolutely fall in love with the concept once you give it a shot.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jason</title>
		<link>http://www.how-to-css.com/css/css-html-and-some-php-part-2/#comment-28</link>
		<dc:creator>Jason</dc:creator>
		<pubDate>Thu, 13 Nov 2008 20:24:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.how-to-css.com/?p=61#comment-28</guid>
		<description>On large sites I'll break up the content into more directories. With that said, I try to keep them all on the same level so that I can use the same navigation include for all of my files, including my index page at the root level. I tend to be an organization freak though, so subfolders help me stay sane.

I've lately started using ZZ_DONOTUPLOAD, to move that folder to the bottom of my directory listing after partially uploading illustrator and photoshop files one too many times.</description>
		<content:encoded><![CDATA[<p>On large sites I&#8217;ll break up the content into more directories. With that said, I try to keep them all on the same level so that I can use the same navigation include for all of my files, including my index page at the root level. I tend to be an organization freak though, so subfolders help me stay sane.</p>
<p>I&#8217;ve lately started using ZZ_DONOTUPLOAD, to move that folder to the bottom of my directory listing after partially uploading illustrator and photoshop files one too many times.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: mattgarvin</title>
		<link>http://www.how-to-css.com/css/css-html-and-some-php-part-2/#comment-27</link>
		<dc:creator>mattgarvin</dc:creator>
		<pubDate>Thu, 13 Nov 2008 20:10:27 +0000</pubDate>
		<guid isPermaLink="false">http://www.how-to-css.com/?p=61#comment-27</guid>
		<description>We do things very similarly, and I guess your layout evolved over time like mine did.  I am interested in your naming conventions, especially regarding images and class names.  Also, do you put "Navigations Items"/"Website Sections" in their own sub-directories, one level deep from the site root, as you do with the other directories?  

I too use a "images", "css", "includes", "js" and "donotupload" directory for resources.  The only difference is I call "donotupload" something like "_SITEINFO" or "!SITEINFO", with the first character causing that folder to show up at the top of all directory listings (in Windows Explorer, for instance.)

Good Stuff!</description>
		<content:encoded><![CDATA[<p>We do things very similarly, and I guess your layout evolved over time like mine did.  I am interested in your naming conventions, especially regarding images and class names.  Also, do you put &#8220;Navigations Items&#8221;/&#8221;Website Sections&#8221; in their own sub-directories, one level deep from the site root, as you do with the other directories?  </p>
<p>I too use a &#8220;images&#8221;, &#8220;css&#8221;, &#8220;includes&#8221;, &#8220;js&#8221; and &#8220;donotupload&#8221; directory for resources.  The only difference is I call &#8220;donotupload&#8221; something like &#8220;_SITEINFO&#8221; or &#8220;!SITEINFO&#8221;, with the first character causing that folder to show up at the top of all directory listings (in Windows Explorer, for instance.)</p>
<p>Good Stuff!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jason</title>
		<link>http://www.how-to-css.com/css/css-html-and-some-php-part-2/#comment-26</link>
		<dc:creator>Jason</dc:creator>
		<pubDate>Thu, 13 Nov 2008 18:24:36 +0000</pubDate>
		<guid isPermaLink="false">http://www.how-to-css.com/?p=61#comment-26</guid>
		<description>@Jonathan - thanks

@manu - I'm aware it's for IE6, which is why the style sheet's name is ie6_style.css</description>
		<content:encoded><![CDATA[<p>@Jonathan - thanks</p>
<p>@manu - I&#8217;m aware it&#8217;s for IE6, which is why the style sheet&#8217;s name is ie6_style.css</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: manu</title>
		<link>http://www.how-to-css.com/css/css-html-and-some-php-part-2/#comment-25</link>
		<dc:creator>manu</dc:creator>
		<pubDate>Thu, 13 Nov 2008 18:11:32 +0000</pubDate>
		<guid isPermaLink="false">http://www.how-to-css.com/?p=61#comment-25</guid>
		<description>The conditional is wrong, that's for IE6 not 7.

Nice stuff btw.</description>
		<content:encoded><![CDATA[<p>The conditional is wrong, that&#8217;s for IE6 not 7.</p>
<p>Nice stuff btw.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jonathan Cutting</title>
		<link>http://www.how-to-css.com/css/css-html-and-some-php-part-2/#comment-23</link>
		<dc:creator>Jonathan Cutting</dc:creator>
		<pubDate>Thu, 13 Nov 2008 15:40:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.how-to-css.com/?p=61#comment-23</guid>
		<description>The tip about passing a page specific name to the header and using it as the body id is brilliant - thanks!</description>
		<content:encoded><![CDATA[<p>The tip about passing a page specific name to the header and using it as the body id is brilliant - thanks!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jason</title>
		<link>http://www.how-to-css.com/css/css-html-and-some-php-part-2/#comment-9</link>
		<dc:creator>Jason</dc:creator>
		<pubDate>Thu, 16 Oct 2008 23:22:49 +0000</pubDate>
		<guid isPermaLink="false">http://www.how-to-css.com/?p=61#comment-9</guid>
		<description>I'm glad it helps. I'm working on the rest of this series - so you should see some more over the weekend.</description>
		<content:encoded><![CDATA[<p>I&#8217;m glad it helps. I&#8217;m working on the rest of this series - so you should see some more over the weekend.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Steve</title>
		<link>http://www.how-to-css.com/css/css-html-and-some-php-part-2/#comment-8</link>
		<dc:creator>Steve</dc:creator>
		<pubDate>Thu, 16 Oct 2008 20:22:11 +0000</pubDate>
		<guid isPermaLink="false">http://www.how-to-css.com/?p=61#comment-8</guid>
		<description>Dude,

Seriously, I'm loving all of this.  This is great stuff and very use full.</description>
		<content:encoded><![CDATA[<p>Dude,</p>
<p>Seriously, I&#8217;m loving all of this.  This is great stuff and very use full.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
