<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	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/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Expressing IT &#187; Smarty</title>
	<atom:link href="http://developer.expressionz.in/blogs/tag/smarty/feed/" rel="self" type="application/rss+xml" />
	<link>http://developer.expressionz.in/blogs</link>
	<description>User Interface : just another, but a serious developers weblog</description>
	<lastBuildDate>Thu, 20 May 2010 18:05:48 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>How to include PHP code inside a Smarty Template</title>
		<link>http://developer.expressionz.in/blogs/2009/02/24/how-to-include-php-code-inside-a-smarty-template/</link>
		<comments>http://developer.expressionz.in/blogs/2009/02/24/how-to-include-php-code-inside-a-smarty-template/#comments</comments>
		<pubDate>Wed, 25 Feb 2009 05:05:06 +0000</pubDate>
		<dc:creator>Nikhil</dc:creator>
				<category><![CDATA[Web Developer]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[Smarty]]></category>
		<category><![CDATA[Tips & Tricks]]></category>

		<guid isPermaLink="false">http://developer.expressionz.in/blogs/?p=69</guid>
		<description><![CDATA[...this one will be a doodle to find in google, as many you us UI and script writers would need to do this on a day to day basis, that is include a bit of peice of PHP code snippet(.php) into a Smarty Template (.tpl). ]]></description>
			<content:encoded><![CDATA[<div class="tweetmeme_button" style="float: left; margin-right: 10px;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fdeveloper.expressionz.in%2Fblogs%2F2009%2F02%2F24%2Fhow-to-include-php-code-inside-a-smarty-template%2F"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fdeveloper.expressionz.in%2Fblogs%2F2009%2F02%2F24%2Fhow-to-include-php-code-inside-a-smarty-template%2F&amp;source=nikhild&amp;style=normal&amp;hashtags=PHP,Smarty,Tips+%26amp%3B+Tricks" height="61" width="50" /><br />
			</a>
		</div>
<p>I thought this one will be a doodle to find in google, as many you us UI and script writers would need to do this on a day to day basis, that is include a bit of peice of PHP code snippet(.php) into a Smarty Template (.tpl).  I realized that easier/popular  your query, even more difficult to find the exact answer&#8230;   a million search results but most of them reffered to &#8220;file&#8221; includes in Smarty &#8230; which has the following syntax</p>
<blockquote><p> <strong><em>   {include file=&#8221;include/header.php&#8221;}<br />
</em></strong></p></blockquote>
<p>This actually inlcuded the file fine but as text , What I wanted was the result of  included file .(Note the above is used include template inside a template file). Finally with a bit persiverance &#8230;. I stumbled across a slighty modified syntax, which was the answer to my requirement &#8230; so here it is&#8230; if you havn&#8217;t found  one already</p>
<blockquote><p><strong><em><br />
{include_php file=&#8221;include/header.php&#8221; }</em></strong></p></blockquote>
]]></content:encoded>
			<wfw:commentRss>http://developer.expressionz.in/blogs/2009/02/24/how-to-include-php-code-inside-a-smarty-template/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
