<?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: A better Zend Framework &amp; Smarty integration</title>
	<atom:link href="http://www.andreabelvedere.com/coding/a-better-zend-framework-smarty-integration/feed" rel="self" type="application/rss+xml" />
	<link>http://www.andreabelvedere.com/coding/a-better-zend-framework-smarty-integration</link>
	<description>Coding, Life</description>
	<lastBuildDate>Sun, 22 Jan 2012 13:12:37 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
	<item>
		<title>By: Hirogens</title>
		<link>http://www.andreabelvedere.com/coding/a-better-zend-framework-smarty-integration/comment-page-1#comment-8201</link>
		<dc:creator>Hirogens</dc:creator>
		<pubDate>Thu, 08 Sep 2011 03:25:07 +0000</pubDate>
		<guid isPermaLink="false">http://www.andreabelvedere.com/?p=12#comment-8201</guid>
		<description>re-Hi,Ok for Zend 1.11.10But I cant use Smarty 3.0...Have you somes ideas ?</description>
		<content:encoded><![CDATA[<p>re-Hi,Ok for Zend 1.11.10But I cant use Smarty 3.0&#8230;Have you somes ideas ?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Hirogens</title>
		<link>http://www.andreabelvedere.com/coding/a-better-zend-framework-smarty-integration/comment-page-1#comment-8200</link>
		<dc:creator>Hirogens</dc:creator>
		<pubDate>Thu, 08 Sep 2011 03:18:13 +0000</pubDate>
		<guid isPermaLink="false">http://www.andreabelvedere.com/?p=12#comment-8200</guid>
		<description>Hi,I have some problems.I want use the last version of Zend 1.11.10 ans the last version of Smarty 3.0.8.With this 2 versions I have this message.Fatal error: Class &#039;SmartyView&#039; not found in C:\UniServer\www\zendriix\application\bootstrap.php on line 34
I have just change this for&#160; wompatibily with 1.11.10require_once &quot;Zend/Loader.php&quot;; Zend_Loader::registerAutoload(); By require_once &#039;Zend/Loader/Autoloader.php&#039;;$autoloader = Zend_Loader_Autoloader::getInstance();B.Regard</description>
		<content:encoded><![CDATA[<p>Hi,I have some problems.I want use the last version of Zend 1.11.10 ans the last version of Smarty 3.0.8.With this 2 versions I have this message.Fatal error: Class &#8216;SmartyView&#8217; not found in C:\UniServer\www\zendriix\application\bootstrap.php on line 34<br />
I have just change this for&nbsp; wompatibily with 1.11.10require_once &#8220;Zend/Loader.php&#8221;; Zend_Loader::registerAutoload(); By require_once &#8216;Zend/Loader/Autoloader.php&#8217;;$autoloader = Zend_Loader_Autoloader::getInstance();B.Regard</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Sravanthi</title>
		<link>http://www.andreabelvedere.com/coding/a-better-zend-framework-smarty-integration/comment-page-1#comment-7942</link>
		<dc:creator>Sravanthi</dc:creator>
		<pubDate>Sat, 27 Aug 2011 14:13:11 +0000</pubDate>
		<guid isPermaLink="false">http://www.andreabelvedere.com/?p=12#comment-7942</guid>
		<description>Hi Andrea,I used your zend.zif . I follow your directory structure. In the controller i wrote like&#160;$this-&gt;view-&gt;name = &#039;Hai Sravanthi!&#039;;In views&#160; i create &quot;templates&quot; folder, in this i store the template file like view/templates/login/index.tplin index.tpl ,i wrote like &#160; {$name}I am not getting any output . when i use &#160;&#160; $this-&gt;render(&#039;index.tpl&#039;);&#160;&#160; &#160; in controller it gives a exception like script &#039;login/index-tpl.phtml&#039; not found in path (D:/xamp/htdocs/sampleproject/application/views\scripts/)  I think the file extention is not taking correctly.Please&#160; give the solution for this problem. And explain&#160; how to access the template files .Regards,Sravanthi.</description>
		<content:encoded><![CDATA[<p>Hi Andrea,I used your zend.zif . I follow your directory structure. In the controller i wrote like&nbsp;$this-&gt;view-&gt;name = &#8216;Hai Sravanthi!&#8217;;In views&nbsp; i create &#8220;templates&#8221; folder, in this i store the template file like view/templates/login/index.tplin index.tpl ,i wrote like &nbsp; {$name}I am not getting any output . when i use &nbsp;&nbsp; $this-&gt;render(&#8216;index.tpl&#8217;);&nbsp;&nbsp; &nbsp; in controller it gives a exception like script &#8216;login/index-tpl.phtml&#8217; not found in path (D:/xamp/htdocs/sampleproject/application/views\scripts/)  I think the file extention is not taking correctly.Please&nbsp; give the solution for this problem. And explain&nbsp; how to access the template files .Regards,Sravanthi.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ramesh</title>
		<link>http://www.andreabelvedere.com/coding/a-better-zend-framework-smarty-integration/comment-page-1#comment-4472</link>
		<dc:creator>Ramesh</dc:creator>
		<pubDate>Mon, 02 May 2011 11:12:10 +0000</pubDate>
		<guid isPermaLink="false">http://www.andreabelvedere.com/?p=12#comment-4472</guid>
		<description>Hi Andrea,&#160;I have downloaded your zend.zip file and created alias in wamp server for zend dir. After restarting wamp server, when browse&#160;http://localhost/zend/htdocs/ &#160;- the default module tpl is rendering, &#160; but not able check admin module. Can you please give me simple guide how to add one more module and how give access&#160;control&#160;to new modules.Thanks in Advance,Ramesh</description>
		<content:encoded><![CDATA[<p>Hi Andrea,&nbsp;I have downloaded your zend.zip file and created alias in wamp server for zend dir. After restarting wamp server, when browse&nbsp;<a href="http://localhost/zend/htdocs/" rel="nofollow">http://localhost/zend/htdocs/</a> &nbsp;- the default module tpl is rendering, &nbsp; but not able check admin module. Can you please give me simple guide how to add one more module and how give access&nbsp;control&nbsp;to new modules.Thanks in Advance,Ramesh</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Dawn</title>
		<link>http://www.andreabelvedere.com/coding/a-better-zend-framework-smarty-integration/comment-page-1#comment-1702</link>
		<dc:creator>Dawn</dc:creator>
		<pubDate>Wed, 06 Oct 2010 02:40:18 +0000</pubDate>
		<guid isPermaLink="false">http://www.andreabelvedere.com/?p=12#comment-1702</guid>
		<description>Hi, I currently have an established site running with smarty template but I am really keen to integrate the zend framework as the site is getting out of hand so want to make the code much more manageable?&#160; Will I be able to do this and can you advise or do you need a lot more info? Thanks</description>
		<content:encoded><![CDATA[<p>Hi, I currently have an established site running with smarty template but I am really keen to integrate the zend framework as the site is getting out of hand so want to make the code much more manageable?&nbsp; Will I be able to do this and can you advise or do you need a lot more info? Thanks</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: jatazoulja</title>
		<link>http://www.andreabelvedere.com/coding/a-better-zend-framework-smarty-integration/comment-page-1#comment-1518</link>
		<dc:creator>jatazoulja</dc:creator>
		<pubDate>Thu, 09 Sep 2010 03:35:24 +0000</pubDate>
		<guid isPermaLink="false">http://www.andreabelvedere.com/?p=12#comment-1518</guid>
		<description>Hi,&#160;this is a good example of zend+smarty so far, just one problem though... I couldn&#039;t load the zend_db_table on the models... any help on this?Cheers!</description>
		<content:encoded><![CDATA[<p>Hi,&nbsp;this is a good example of zend+smarty so far, just one problem though&#8230; I couldn&#8217;t load the zend_db_table on the models&#8230; any help on this?Cheers!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Michael Hodgins</title>
		<link>http://www.andreabelvedere.com/coding/a-better-zend-framework-smarty-integration/comment-page-1#comment-1246</link>
		<dc:creator>Michael Hodgins</dc:creator>
		<pubDate>Sat, 31 Jul 2010 22:59:10 +0000</pubDate>
		<guid isPermaLink="false">http://www.andreabelvedere.com/?p=12#comment-1246</guid>
		<description>Hi AndreaI found this article rather useful but it is a little out of date for Zend Framework 1.10, so I thought you might like to know that I&#039;ve written an article on my own blog - mooduino.co.uk - showing how to use this technique with the current version of the library. In particular, it shows how to configure with a .ini file, the new Bootstrap class and using Smarty with both Zend_View and Zend_Layout.Michael</description>
		<content:encoded><![CDATA[<p>Hi AndreaI found this article rather useful but it is a little out of date for Zend Framework 1.10, so I thought you might like to know that I&#8217;ve written an article on my own blog &#8211; mooduino.co.uk &#8211; showing how to use this technique with the current version of the library. In particular, it shows how to configure with a .ini file, the new Bootstrap class and using Smarty with both Zend_View and Zend_Layout.Michael</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Kelly</title>
		<link>http://www.andreabelvedere.com/coding/a-better-zend-framework-smarty-integration/comment-page-1#comment-676</link>
		<dc:creator>Kelly</dc:creator>
		<pubDate>Tue, 30 Mar 2010 17:16:44 +0000</pubDate>
		<guid isPermaLink="false">http://www.andreabelvedere.com/?p=12#comment-676</guid>
		<description>thanks for this article, I was able to adapt it quite quickly to my codebase. I also enjoy the aforementioned book, although I started it, I ended up taking a step back to get some more fundamentals under my belt first and now am just coming back to zend framework. I would reccommend to anyone starting out with a php from novice to professional type book, then going to something for zend framework. &#160;</description>
		<content:encoded><![CDATA[<p>thanks for this article, I was able to adapt it quite quickly to my codebase. I also enjoy the aforementioned book, although I started it, I ended up taking a step back to get some more fundamentals under my belt first and now am just coming back to zend framework. I would reccommend to anyone starting out with a php from novice to professional type book, then going to something for zend framework. &nbsp;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jules</title>
		<link>http://www.andreabelvedere.com/coding/a-better-zend-framework-smarty-integration/comment-page-1#comment-668</link>
		<dc:creator>Jules</dc:creator>
		<pubDate>Mon, 22 Mar 2010 21:11:08 +0000</pubDate>
		<guid isPermaLink="false">http://www.andreabelvedere.com/?p=12#comment-668</guid>
		<description>Hi Andrea&#160;Thanks for this usefull method,it&#039;s appear that i&#039;ve a problem&lt;code&gt;&lt;b&gt;Fatal error&lt;/b&gt;: Uncaught exception &#039;Zend_Controller_Dispatcher_Exception&#039; with message &#039;Invalid controller specified (admin)&#039; in ..&lt;/code&gt;unfortunately i don&#039;t see any problem in my Bootstrap and i use the modular structure.If i create an AdminController in the folder /controllers under /app i see a new message &#039;admin.phtml not found&#039;What is really strange is that all the smarty template as described as you works great.Is someone see what kind of problem it is ?many thanks</description>
		<content:encoded><![CDATA[<p>Hi Andrea&nbsp;Thanks for this usefull method,it&#8217;s appear that i&#8217;ve a problem&lt;code&gt;<b>Fatal error</b>: Uncaught exception &#8216;Zend_Controller_Dispatcher_Exception&#8217; with message &#8216;Invalid controller specified (admin)&#8217; in ..&lt;/code&gt;unfortunately i don&#8217;t see any problem in my Bootstrap and i use the modular structure.If i create an AdminController in the folder /controllers under /app i see a new message &#8216;admin.phtml not found&#8217;What is really strange is that all the smarty template as described as you works great.Is someone see what kind of problem it is ?many thanks</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: andrea belvedere</title>
		<link>http://www.andreabelvedere.com/coding/a-better-zend-framework-smarty-integration/comment-page-1#comment-644</link>
		<dc:creator>andrea belvedere</dc:creator>
		<pubDate>Wed, 03 Mar 2010 15:53:48 +0000</pubDate>
		<guid isPermaLink="false">http://www.andreabelvedere.com/?p=12#comment-644</guid>
		<description>Hi Pravin,
That error means that the Zend folder is not in your include path.
so the line:
&lt;code&gt;require_once &#039;Zend/Loader.php&#039;;&lt;/code&gt;
fails as the Loader.php file is not found.
Make sure the Zend folder is in your include path. The bootstrap.php file attempts to include the Zend folder in the include path with the lines:
&lt;code&gt;
// Set our include path
$include_path = get_include_path().PATH_SEPARATOR;
$include_path .= SITE_ROOT.&#039;/application/lib&#039;.PATH_SEPARATOR;
$include_path .= SITE_ROOT.&#039;/application/models&#039;.PATH_SEPARATOR;
$include_path .= SITE_ROOT.&#039;/application/include&#039;.PATH_SEPARATOR;
set_include_path($include_path);
&lt;/code&gt;
however for the lines above to work the SITE_ROOT defined variable must be correctly set, which means that in your case this:
&lt;code&gt;dirname($_SERVER[&#039;DOCUMENT_ROOT&#039;])&lt;/code&gt;
should return the following:
&lt;code&gt;C:\wamp\www\zend&lt;/code&gt;
but in your case is returning:
&lt;code&gt;C:\wamp\&lt;/code&gt;

So to make it work correctly you have the following options:
1) change your &quot;DocumentRoot&quot; in your apache configuration file, or VirtualHost block to point to &lt;code&gt;C:\wamp\www\zend\htdocs&lt;/code&gt; so it should be &lt;code&gt;DocumentRoot C:/wamp/www/zend/htdocs&lt;/code&gt;
&lt;strong&gt;or&lt;/strong&gt;
2) change this line in the bootstrap.php file, from:
&lt;code&gt;define(&quot;SITE_ROOT&quot;, dirname($_SERVER[&#039;DOCUMENT_ROOT&#039;]));&lt;/code&gt; to
&lt;code&gt;define(&quot;SITE_ROOT&quot;, &quot;C:/wamp/www/zend&quot;);&lt;/code&gt;

hope it helps
andrea</description>
		<content:encoded><![CDATA[<p>Hi Pravin,<br />
That error means that the Zend folder is not in your include path.<br />
so the line:<br />
<code>require_once 'Zend/Loader.php';</code><br />
fails as the Loader.php file is not found.<br />
Make sure the Zend folder is in your include path. The bootstrap.php file attempts to include the Zend folder in the include path with the lines:<br />
<code><br />
// Set our include path<br />
$include_path = get_include_path().PATH_SEPARATOR;<br />
$include_path .= SITE_ROOT.'/application/lib'.PATH_SEPARATOR;<br />
$include_path .= SITE_ROOT.'/application/models'.PATH_SEPARATOR;<br />
$include_path .= SITE_ROOT.'/application/include'.PATH_SEPARATOR;<br />
set_include_path($include_path);<br />
</code><br />
however for the lines above to work the SITE_ROOT defined variable must be correctly set, which means that in your case this:<br />
<code>dirname($_SERVER['DOCUMENT_ROOT'])</code><br />
should return the following:<br />
<code>C:\wamp\www\zend</code><br />
but in your case is returning:<br />
<code>C:\wamp\</code></p>
<p>So to make it work correctly you have the following options:<br />
1) change your &#8220;DocumentRoot&#8221; in your apache configuration file, or VirtualHost block to point to <code>C:\wamp\www\zend\htdocs</code> so it should be <code>DocumentRoot C:/wamp/www/zend/htdocs</code><br />
<strong>or</strong><br />
2) change this line in the bootstrap.php file, from:<br />
<code>define("SITE_ROOT", dirname($_SERVER['DOCUMENT_ROOT']));</code> to<br />
<code>define("SITE_ROOT", "C:/wamp/www/zend");</code></p>
<p>hope it helps<br />
andrea</p>
]]></content:encoded>
	</item>
</channel>
</rss>

