<?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: Zend Framework: Using Smarty as template engine</title>
	<atom:link href="http://kpumuk.info/php/zend-framework-using-smarty-as-template-engine/feed/" rel="self" type="application/rss+xml" />
	<link>http://kpumuk.info/php/zend-framework-using-smarty-as-template-engine/</link>
	<description>In my blog I'll try to describe about interesting technologies, my discovery in IT and some useful things about programming.</description>
	<pubDate>Sat, 10 May 2008 02:15:43 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.5.1</generator>
		<item>
		<title>By: guai</title>
		<link>http://kpumuk.info/php/zend-framework-using-smarty-as-template-engine/#comment-195717</link>
		<dc:creator>guai</dc:creator>
		<pubDate>Thu, 30 Nov 2000 00:00:00 +0000</pubDate>
		<guid isPermaLink="false">http://kpumuk.info/php/zend-framework-using-smarty-as-template-engine/#comment-195717</guid>
		<description>Исчо раз фсем привет.

Кой-чего переправил по сравнению с предыдущем постом:

view.php:

&lt;code lang="php"&gt;
require_once 'Zend/View.php';

class View extends Zend_View
{
	protected $_smarty;
	public $_useSmarty=true;

	protected function _run()
	{
		if($this-&gt;_useSmarty):
			if(!isset($this-&gt;_smarty)) {
				require_once SMARTY_DIR.'Smarty.class.php';
				$this-&gt;_smarty=new Smarty();
				include MY_SMARTY_CFG_FILE;
			}
			$this-&gt;_smarty-&gt;clear_all_assign();
			$this-&gt;_smarty-&gt;assign($this-&gt;getVars());
			$this-&gt;_smarty-&gt;assign_by_ref('THIS',$this);
			$this-&gt;_smarty-&gt;display(ROOT_DIR.func_get_arg(0));
		else:
			$args=func_get_args();
			call_user_method_array ('_run',$parent=parent,$args);
		endif;
	}
}
&lt;/code&gt;

config.php:

&lt;code lang="php"&gt;
//set_include_path(realpath('..'));
define('DS',DIRECTORY_SEPARATOR);

// SMARTY
define('ROOT_DIR',realpath('.').DS);
define('SMARTY_DIR',ROOT_DIR.'smarty'.DS);
define('MY_SMARTY_CFG_FILE',ROOT_DIR.'smarty.cfg.php');
&lt;/code&gt;

smarty.cfg.php:

&lt;code lang="php"&gt;
$this-&gt;_smarty-&gt;plugins_dir=array(
	SMARTY_DIR.'plugins',
	ROOT_DIR.'my_smarty_plugins');
$this-&gt;_smarty-&gt;template_dir=__(ROOT_DIR.$this-&gt;getScriptPath(''));
$this-&gt;_smarty-&gt;compile_dir=ROOT_DIR.'tmp';
$this-&gt;_smarty-&gt;force_compile=true;
&lt;/code&gt;

Самое интересное:
наколбасил свой плугин для смарти:
файл my_smarty_plugins/compiler.zf:

[cc lang="php"]
function smarty_compiler_zf($tag_attrs, &#038;$compiler)
{
	return "\$THIS=\$this-&gt;_tpl_vars['THIS'];$tag_attrs;";
}
[/cc]

И вот для чего это фсё делалось:
файл \app\views\scripts\layout.phtml:

[cc lang="html"]
&lt;!DOCTYPE html
    PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"&gt;
&lt;html&gt;
&lt;head&gt;
    &lt;meta http-equiv="Content-Type" content="text/html; charset=windows-1251" /&gt;
    {zf echo $THIS-&gt;headTitle() }
    {zf echo $THIS-&gt;headScript() }
    {zf echo $THIS-&gt;headStyle() }
&lt;/head&gt;
&lt;body&gt;
	{include file='footer.phtml'}

    &lt;div id="nav"&gt;{zf echo $THIS-&gt;placeholder('nav') }&lt;/div&gt;

    &lt;div id="content"&gt;{zf echo $THIS-&gt;layout()-&gt;content }&lt;/div&gt;

	{include file='header.phtml'}
&lt;/body&gt;
&lt;/html&gt;
[/cc]

Матёро, не?</description>
		<content:encoded><![CDATA[<p>Исчо раз фсем привет.</p>
<p>Кой-чего переправил по сравнению с предыдущем постом:</p>
<p>view.php:</p>
<div class="codecolorer-container php" style="height:280px;"><div class="codecolorer" style="font-family: monospace;"><span class="kw1">require_once</span> <span class="st0">'Zend/View.php'</span>;<br />
<br />
<span class="kw2">class</span> View <span class="kw2">extends</span> Zend_View<br />
<span class="br0">&#123;</span><br />
&nbsp; &nbsp; protected <span class="re0">$_smarty</span>;<br />
&nbsp; &nbsp; <span class="kw2">public</span> <span class="re0">$_useSmarty</span>=<span class="kw2">true</span>;<br />
<br />
&nbsp; &nbsp; protected <span class="kw2">function</span> _run<span class="br0">&#40;</span><span class="br0">&#41;</span><br />
&nbsp; &nbsp; <span class="br0">&#123;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span class="kw1">if</span><span class="br0">&#40;</span><span class="re0">$this</span>-&gt;_useSmarty<span class="br0">&#41;</span>:<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span class="kw1">if</span><span class="br0">&#40;</span>!<span class="kw3">isset</span><span class="br0">&#40;</span><span class="re0">$this</span>-&gt;_smarty<span class="br0">&#41;</span><span class="br0">&#41;</span> <span class="br0">&#123;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span class="kw1">require_once</span> SMARTY_DIR.<span class="st0">'Smarty.class.php'</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span class="re0">$this</span>-&gt;_smarty=<span class="kw2">new</span> Smarty<span class="br0">&#40;</span><span class="br0">&#41;</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span class="kw1">include</span> MY_SMARTY_CFG_FILE;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span class="br0">&#125;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span class="re0">$this</span>-&gt;_smarty-&gt;<span class="me1">clear_all_assign</span><span class="br0">&#40;</span><span class="br0">&#41;</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span class="re0">$this</span>-&gt;_smarty-&gt;<span class="me1">assign</span><span class="br0">&#40;</span><span class="re0">$this</span>-&gt;<span class="me1">getVars</span><span class="br0">&#40;</span><span class="br0">&#41;</span><span class="br0">&#41;</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span class="re0">$this</span>-&gt;_smarty-&gt;<span class="me1">assign_by_ref</span><span class="br0">&#40;</span><span class="st0">'THIS'</span>,<span class="re0">$this</span><span class="br0">&#41;</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span class="re0">$this</span>-&gt;_smarty-&gt;<span class="me1">display</span><span class="br0">&#40;</span>ROOT_DIR.<span class="kw3">func_get_arg</span><span class="br0">&#40;</span><span class="nu0">0</span><span class="br0">&#41;</span><span class="br0">&#41;</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; <span class="kw1">else</span>:<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span class="re0">$args</span>=<span class="kw3">func_get_args</span><span class="br0">&#40;</span><span class="br0">&#41;</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span class="kw3">call_user_method_array</span> <span class="br0">&#40;</span><span class="st0">'_run'</span>,<span class="re0">$parent</span>=parent,<span class="re0">$args</span><span class="br0">&#41;</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; <span class="kw1">endif</span>;<br />
&nbsp; &nbsp; <span class="br0">&#125;</span><br />
<span class="br0">&#125;</span></div></div>
<p>config.php:</p>
<div class="codecolorer-container php"><div class="codecolorer" style="font-family: monospace;"><span class="co1">//set_include_path(realpath('..'));</span><br />
<span class="kw3">define</span><span class="br0">&#40;</span><span class="st0">'DS'</span>,DIRECTORY_SEPARATOR<span class="br0">&#41;</span>;<br />
<br />
<span class="co1">// SMARTY</span><br />
<span class="kw3">define</span><span class="br0">&#40;</span><span class="st0">'ROOT_DIR'</span>,<span class="kw3">realpath</span><span class="br0">&#40;</span><span class="st0">'.'</span><span class="br0">&#41;</span>.DS<span class="br0">&#41;</span>;<br />
<span class="kw3">define</span><span class="br0">&#40;</span><span class="st0">'SMARTY_DIR'</span>,ROOT_DIR.<span class="st0">'smarty'</span>.DS<span class="br0">&#41;</span>;<br />
<span class="kw3">define</span><span class="br0">&#40;</span><span class="st0">'MY_SMARTY_CFG_FILE'</span>,ROOT_DIR.<span class="st0">'smarty.cfg.php'</span><span class="br0">&#41;</span>;</div></div>
<p>smarty.cfg.php:</p>
<div class="codecolorer-container php"><div class="codecolorer" style="font-family: monospace;"><span class="re0">$this</span>-&gt;_smarty-&gt;<span class="me1">plugins_dir</span>=<span class="kw3">array</span><span class="br0">&#40;</span><br />
&nbsp; &nbsp; SMARTY_DIR.<span class="st0">'plugins'</span>,<br />
&nbsp; &nbsp; ROOT_DIR.<span class="st0">'my_smarty_plugins'</span><span class="br0">&#41;</span>;<br />
<span class="re0">$this</span>-&gt;_smarty-&gt;<span class="me1">template_dir</span>=__<span class="br0">&#40;</span>ROOT_DIR.<span class="re0">$this</span>-&gt;<span class="me1">getScriptPath</span><span class="br0">&#40;</span><span class="st0">''</span><span class="br0">&#41;</span><span class="br0">&#41;</span>;<br />
<span class="re0">$this</span>-&gt;_smarty-&gt;<span class="me1">compile_dir</span>=ROOT_DIR.<span class="st0">'tmp'</span>;<br />
<span class="re0">$this</span>-&gt;_smarty-&gt;<span class="me1">force_compile</span>=<span class="kw2">true</span>;</div></div>
<p>Самое интересное:<br />
наколбасил свой плугин для смарти:<br />
файл my_smarty_plugins/compiler.zf:</p>
<div class="codecolorer-container php"><div class="codecolorer" style="font-family: monospace;"><span class="kw2">function</span> smarty_compiler_zf<span class="br0">&#40;</span><span class="re0">$tag_attrs</span>, &amp;<span class="re0">$compiler</span><span class="br0">&#41;</span><br />
<span class="br0">&#123;</span><br />
&nbsp; &nbsp; <span class="kw1">return</span> <span class="st0">&quot;<span class="es0">\$</span>THIS=<span class="es0">\$</span>this-&gt;_tpl_vars['THIS'];$tag_attrs;&quot;</span>;<br />
<span class="br0">&#125;</span></div></div>
<p>И вот для чего это фсё делалось:<br />
файл \app\views\scripts\layout.phtml:</p>
<div class="codecolorer-container html"><div class="codecolorer" style="font-family: monospace;"><span class="sc0">&lt;!DOCTYPE html</span><br />
<span class="sc0">&nbsp; &nbsp; PUBLIC &quot;-//W3C//DTD XHTML 1.0 Transitional//EN&quot;</span><br />
<span class="sc0">&nbsp; &nbsp; &quot;http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd&quot;&gt;</span><br />
<span class="sc2"><span class="kw2">&lt;html&gt;</span></span><br />
<span class="sc2"><span class="kw2">&lt;head&gt;</span></span><br />
&nbsp; &nbsp; <span class="sc2"><span class="kw2">&lt;meta</span> <span class="kw3">http-equiv</span>=<span class="st0">&quot;Content-Type&quot;</span> <span class="kw3">content</span>=<span class="st0">&quot;text/html; charset=windows-1251&quot;</span> /<span class="kw2">&gt;</span></span><br />
&nbsp; &nbsp; {zf echo $THIS-&gt;headTitle() }<br />
&nbsp; &nbsp; {zf echo $THIS-&gt;headScript() }<br />
&nbsp; &nbsp; {zf echo $THIS-&gt;headStyle() }<br />
<span class="sc2"><span class="kw2">&lt;/head&gt;</span></span><br />
<span class="sc2"><span class="kw2">&lt;body&gt;</span></span><br />
&nbsp; &nbsp; {include file='footer.phtml'}<br />
<br />
&nbsp; &nbsp; <span class="sc2"><span class="kw2">&lt;div</span> <span class="kw3">id</span>=<span class="st0">&quot;nav&quot;</span><span class="kw2">&gt;</span></span>{zf echo $THIS-&gt;placeholder('nav') }<span class="sc2"><span class="kw2">&lt;/div&gt;</span></span><br />
<br />
&nbsp; &nbsp; <span class="sc2"><span class="kw2">&lt;div</span> <span class="kw3">id</span>=<span class="st0">&quot;content&quot;</span><span class="kw2">&gt;</span></span>{zf echo $THIS-&gt;layout()-&gt;content }<span class="sc2"><span class="kw2">&lt;/div&gt;</span></span><br />
<br />
&nbsp; &nbsp; {include file='header.phtml'}<br />
<span class="sc2"><span class="kw2">&lt;/body&gt;</span></span><br />
<span class="sc2"><span class="kw2">&lt;/html&gt;</span></span></div></div>
<p>Матёро, не?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: guai</title>
		<link>http://kpumuk.info/php/zend-framework-using-smarty-as-template-engine/#comment-195671</link>
		<dc:creator>guai</dc:creator>
		<pubDate>Mon, 30 Nov 2009 00:00:00 +0000</pubDate>
		<guid isPermaLink="false">http://kpumuk.info/php/zend-framework-using-smarty-as-template-engine/#comment-195671</guid>
		<description>Всем привет.

Напэашпил файлик, думаю будет полезен собравшимся.

&lt;code lang="php"&gt;
require_once 'Zend/View.php';

class View extends Zend_View
{
	protected $_smarty;
	public $_useSmarty=true;

	protected function _run()
	{
		if($this-&gt;_useSmarty):
			if(!isset($this-&gt;_smarty))
			{
				require_once SMARTY_DIR.'Smarty.class.php';
				$this-&gt;_smarty=new Smarty();
				include MY_SMARTY_CFG_FILE;
			}
			$this-&gt;_smarty-&gt;assign($this-&gt;getVars());
			$this-&gt;_smarty-&gt;display(ROOT_DIR.func_get_arg(0));
		else:
			$args=func_get_args();
			call_user_method_array ('_run',$parent=parent,$args);
		endif;
	}
}&lt;/code&gt;

Так подрубается:

&lt;code lang="php"&gt;
chdir('..');
require_once 'config.php';
require_once 'view.php';

require_once 'Zend/Controller/Front.php';
require_once 'Zend/Controller/Action/Helper/ViewRenderer.php';

Zend_Controller_Action_HelperBroker::addHelper(new Zend_Controller_Action_Helper_ViewRenderer(new View()));

Zend_Controller_Front::run('app/ctrls');

&lt;/code&gt;

Так отрубается:

&lt;code lang="php"&gt;
require_once 'Zend/Controller/Action.php';

class IndexController extends Zend_Controller_Action
{
	public function init()
	{
	$this-&gt;view-&gt;_useSmarty=false;
	}

	public function indexAction()
	{
	}
}
&lt;/code&gt;

Думаю понятно, что к чему.
Зендовский код не загажен ничем, специфичным для Смарти, шаблоны лежат где и были по дефолту, тока на смарти.
Кстати, мона без палева довернуть определение движка шаблонов по расширению файла. Тока не знаю нафига.
А кэширование имхо лучше юзать зэндовское, оно матёрее.

ЗЫЖ это под 1.5.1</description>
		<content:encoded><![CDATA[<p>Всем привет.</p>
<p>Напэашпил файлик, думаю будет полезен собравшимся.</p>
<div class="codecolorer-container php" style="height:280px;"><div class="codecolorer" style="font-family: monospace;"><span class="kw1">require_once</span> <span class="st0">'Zend/View.php'</span>;<br />
<br />
<span class="kw2">class</span> View <span class="kw2">extends</span> Zend_View<br />
<span class="br0">&#123;</span><br />
&nbsp; &nbsp; protected <span class="re0">$_smarty</span>;<br />
&nbsp; &nbsp; <span class="kw2">public</span> <span class="re0">$_useSmarty</span>=<span class="kw2">true</span>;<br />
<br />
&nbsp; &nbsp; protected <span class="kw2">function</span> _run<span class="br0">&#40;</span><span class="br0">&#41;</span><br />
&nbsp; &nbsp; <span class="br0">&#123;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span class="kw1">if</span><span class="br0">&#40;</span><span class="re0">$this</span>-&gt;_useSmarty<span class="br0">&#41;</span>:<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span class="kw1">if</span><span class="br0">&#40;</span>!<span class="kw3">isset</span><span class="br0">&#40;</span><span class="re0">$this</span>-&gt;_smarty<span class="br0">&#41;</span><span class="br0">&#41;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span class="br0">&#123;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span class="kw1">require_once</span> SMARTY_DIR.<span class="st0">'Smarty.class.php'</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span class="re0">$this</span>-&gt;_smarty=<span class="kw2">new</span> Smarty<span class="br0">&#40;</span><span class="br0">&#41;</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span class="kw1">include</span> MY_SMARTY_CFG_FILE;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span class="br0">&#125;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span class="re0">$this</span>-&gt;_smarty-&gt;<span class="me1">assign</span><span class="br0">&#40;</span><span class="re0">$this</span>-&gt;<span class="me1">getVars</span><span class="br0">&#40;</span><span class="br0">&#41;</span><span class="br0">&#41;</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span class="re0">$this</span>-&gt;_smarty-&gt;<span class="me1">display</span><span class="br0">&#40;</span>ROOT_DIR.<span class="kw3">func_get_arg</span><span class="br0">&#40;</span><span class="nu0">0</span><span class="br0">&#41;</span><span class="br0">&#41;</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; <span class="kw1">else</span>:<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span class="re0">$args</span>=<span class="kw3">func_get_args</span><span class="br0">&#40;</span><span class="br0">&#41;</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span class="kw3">call_user_method_array</span> <span class="br0">&#40;</span><span class="st0">'_run'</span>,<span class="re0">$parent</span>=parent,<span class="re0">$args</span><span class="br0">&#41;</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; <span class="kw1">endif</span>;<br />
&nbsp; &nbsp; <span class="br0">&#125;</span><br />
<span class="br0">&#125;</span></div></div>
<p>Так подрубается:</p>
<div class="codecolorer-container php"><div class="codecolorer" style="font-family: monospace;"><span class="kw3">chdir</span><span class="br0">&#40;</span><span class="st0">'..'</span><span class="br0">&#41;</span>;<br />
<span class="kw1">require_once</span> <span class="st0">'config.php'</span>;<br />
<span class="kw1">require_once</span> <span class="st0">'view.php'</span>;<br />
<br />
<span class="kw1">require_once</span> <span class="st0">'Zend/Controller/Front.php'</span>;<br />
<span class="kw1">require_once</span> <span class="st0">'Zend/Controller/Action/Helper/ViewRenderer.php'</span>;<br />
<br />
Zend_Controller_Action_HelperBroker::<span class="me2">addHelper</span><span class="br0">&#40;</span><span class="kw2">new</span> Zend_Controller_Action_Helper_ViewRenderer<span class="br0">&#40;</span><span class="kw2">new</span> View<span class="br0">&#40;</span><span class="br0">&#41;</span><span class="br0">&#41;</span><span class="br0">&#41;</span>;<br />
<br />
Zend_Controller_Front::<span class="me2">run</span><span class="br0">&#40;</span><span class="st0">'app/ctrls'</span><span class="br0">&#41;</span>;</div></div>
<p>Так отрубается:</p>
<div class="codecolorer-container php"><div class="codecolorer" style="font-family: monospace;"><span class="kw1">require_once</span> <span class="st0">'Zend/Controller/Action.php'</span>;<br />
<br />
<span class="kw2">class</span> IndexController <span class="kw2">extends</span> Zend_Controller_Action<br />
<span class="br0">&#123;</span><br />
&nbsp; &nbsp; <span class="kw2">public</span> <span class="kw2">function</span> init<span class="br0">&#40;</span><span class="br0">&#41;</span><br />
&nbsp; &nbsp; <span class="br0">&#123;</span><br />
&nbsp; &nbsp; <span class="re0">$this</span>-&gt;<span class="me1">view</span>-&gt;_useSmarty=<span class="kw2">false</span>;<br />
&nbsp; &nbsp; <span class="br0">&#125;</span><br />
<br />
&nbsp; &nbsp; <span class="kw2">public</span> <span class="kw2">function</span> indexAction<span class="br0">&#40;</span><span class="br0">&#41;</span><br />
&nbsp; &nbsp; <span class="br0">&#123;</span><br />
&nbsp; &nbsp; <span class="br0">&#125;</span><br />
<span class="br0">&#125;</span></div></div>
<p>Думаю понятно, что к чему.<br />
Зендовский код не загажен ничем, специфичным для Смарти, шаблоны лежат где и были по дефолту, тока на смарти.<br />
Кстати, мона без палева довернуть определение движка шаблонов по расширению файла. Тока не знаю нафига.<br />
А кэширование имхо лучше юзать зэндовское, оно матёрее.</p>
<p>ЗЫЖ это под 1.5.1</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Lance</title>
		<link>http://kpumuk.info/php/zend-framework-using-smarty-as-template-engine/#comment-189197</link>
		<dc:creator>Lance</dc:creator>
		<pubDate>Fri, 30 Nov 2007 00:00:00 +0000</pubDate>
		<guid isPermaLink="false">http://kpumuk.info/php/zend-framework-using-smarty-as-template-engine/#comment-189197</guid>
		<description>Repeating Mel's post becauase-I don't understand this line either:

Require 'Zend.php'; 

I can't find any Zend.php in the Zend framework libraries so I'm trying to figure out what was meant by this line also.</description>
		<content:encoded><![CDATA[<p>Repeating Mel&#8217;s post becauase-I don&#8217;t understand this line either:</p>
<p>Require &#8216;Zend.php&#8217;; </p>
<p>I can&#8217;t find any Zend.php in the Zend framework libraries so I&#8217;m trying to figure out what was meant by this line also.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Евгений</title>
		<link>http://kpumuk.info/php/zend-framework-using-smarty-as-template-engine/#comment-152817</link>
		<dc:creator>Евгений</dc:creator>
		<pubDate>Sun, 30 Nov 2003 00:00:00 +0000</pubDate>
		<guid isPermaLink="false">http://kpumuk.info/php/zend-framework-using-smarty-as-template-engine/#comment-152817</guid>
		<description>Спасибо автору! 
Именно этот подход я использую уже несколько месяцев, однако все это время меня не оставляет в покое тот факт, что было бы все-таки удобнее реализовать что-то вроде smarty-авторендеринга, что бы по умолчанию происходила обработка конкретного шаблона, как это делается с phtml. Нет ли у кого подобных наработок?</description>
		<content:encoded><![CDATA[<p>Спасибо автору!<br />
Именно этот подход я использую уже несколько месяцев, однако все это время меня не оставляет в покое тот факт, что было бы все-таки удобнее реализовать что-то вроде smarty-авторендеринга, что бы по умолчанию происходила обработка конкретного шаблона, как это делается с phtml. Нет ли у кого подобных наработок?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Zend Framework и Smarty интеграция</title>
		<link>http://kpumuk.info/php/zend-framework-using-smarty-as-template-engine/#comment-148429</link>
		<dc:creator>Zend Framework и Smarty интеграция</dc:creator>
		<pubDate>Tue, 30 Nov 2010 00:00:00 +0000</pubDate>
		<guid isPermaLink="false">http://kpumuk.info/php/zend-framework-using-smarty-as-template-engine/#comment-148429</guid>
		<description>[...] Втория вариант е относително елементарен, което и ме накара да се спра на него. На мен лично нещо не ми проработи идеята със Zend::registry, затова предпочетох да коментирам реда и да си дефинирам променливата като глобална. От там нататък всичко беше 6+ и нямаше никакви проблеми. Ето как трябва да изглежда един примерен IndexController: PHP: [...]</description>
		<content:encoded><![CDATA[<p>[...] Втория вариант е относително елементарен, което и ме накара да се спра на него. На мен лично нещо не ми проработи идеята със Zend::registry, затова предпочетох да коментирам реда и да си дефинирам променливата като глобална. От там нататък всичко беше 6+ и нямаше никакви проблеми. Ето как трябва да изглежда един примерен IndexController: PHP: [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Zhannar - Developing PHP Applications &#187; Blog Archive &#187; Another way to integrate Smarty to your Zend Framework based application</title>
		<link>http://kpumuk.info/php/zend-framework-using-smarty-as-template-engine/#comment-131878</link>
		<dc:creator>Zhannar - Developing PHP Applications &#187; Blog Archive &#187; Another way to integrate Smarty to your Zend Framework based application</dc:creator>
		<pubDate>Tue, 30 Nov 2010 00:00:00 +0000</pubDate>
		<guid isPermaLink="false">http://kpumuk.info/php/zend-framework-using-smarty-as-template-engine/#comment-131878</guid>
		<description>[...] updated version for it is based on version 1+ campared to the other previous integrations like Zend Framework: Using Smarty as template engine and Integrating Smarty with the Zend [...]</description>
		<content:encoded><![CDATA[<p>[...] updated version for it is based on version 1+ campared to the other previous integrations like Zend Framework: Using Smarty as template engine and Integrating Smarty with the Zend [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Las vistas de ZendFramework</title>
		<link>http://kpumuk.info/php/zend-framework-using-smarty-as-template-engine/#comment-105717</link>
		<dc:creator>Las vistas de ZendFramework</dc:creator>
		<pubDate>Fri, 30 Nov 2007 00:00:00 +0000</pubDate>
		<guid isPermaLink="false">http://kpumuk.info/php/zend-framework-using-smarty-as-template-engine/#comment-105717</guid>
		<description>[...] conclusión que acaba pareciendo código spaghetti. Eso sí,parece que se puede utilizar Smarty como motor de plantillas, con el que en su día no estuve demasiado cómodo trabajando y no me [...]</description>
		<content:encoded><![CDATA[<p>[...] conclusión que acaba pareciendo código spaghetti. Eso sí,parece que se puede utilizar Smarty como motor de plantillas, con el que en su día no estuve demasiado cómodo trabajando y no me [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: pete99</title>
		<link>http://kpumuk.info/php/zend-framework-using-smarty-as-template-engine/#comment-95650</link>
		<dc:creator>pete99</dc:creator>
		<pubDate>Sun, 30 Nov 2003 00:00:00 +0000</pubDate>
		<guid isPermaLink="false">http://kpumuk.info/php/zend-framework-using-smarty-as-template-engine/#comment-95650</guid>
		<description>Hi fellows,
it is interesting to see the discussion.
I thing it's more clean to use smarty on his own. So you are also better prepared to upcomming ZF's.
BTW. Where would images and CSS be stored best? in template/xxx oder in a folder by itsself?</description>
		<content:encoded><![CDATA[<p>Hi fellows,<br />
it is interesting to see the discussion.<br />
I thing it&#8217;s more clean to use smarty on his own. So you are also better prepared to upcomming ZF&#8217;s.<br />
BTW. Where would images and CSS be stored best? in template/xxx oder in a folder by itsself?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Gorynych</title>
		<link>http://kpumuk.info/php/zend-framework-using-smarty-as-template-engine/#comment-91055</link>
		<dc:creator>Gorynych</dc:creator>
		<pubDate>Thu, 30 Nov 2006 00:00:00 +0000</pubDate>
		<guid isPermaLink="false">http://kpumuk.info/php/zend-framework-using-smarty-as-template-engine/#comment-91055</guid>
		<description>Сегодня прикрутил Smarty к ZF, решил посмотреть другие решения. Автор молодец. Smarty рулит.</description>
		<content:encoded><![CDATA[<p>Сегодня прикрутил Smarty к ZF, решил посмотреть другие решения. Автор молодец. Smarty рулит.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: unixvps</title>
		<link>http://kpumuk.info/php/zend-framework-using-smarty-as-template-engine/#comment-87651</link>
		<dc:creator>unixvps</dc:creator>
		<pubDate>Wed, 30 Nov 2011 00:00:00 +0000</pubDate>
		<guid isPermaLink="false">http://kpumuk.info/php/zend-framework-using-smarty-as-template-engine/#comment-87651</guid>
		<description>Good article and start point.
I successfully run with the latest Zend Framework 1.0.1 and latest Smarty 2.6.18.</description>
		<content:encoded><![CDATA[<p>Good article and start point.<br />
I successfully run with the latest Zend Framework 1.0.1 and latest Smarty 2.6.18.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
