<?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: Extending Zend_View_Interface for use with Smarty</title>
	<atom:link href="http://akrabat.com/2006/12/23/extending-zend_view_interface-for-use-with-smarty/feed/" rel="self" type="application/rss+xml" />
	<link>http://akrabat.com/2006/12/23/extending-zend_view_interface-for-use-with-smarty/</link>
	<description>Developing PHP and XUL Software in the Real World</description>
	<pubDate>Thu, 21 Aug 2008 22:48:51 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.5.1</generator>
		<item>
		<title>By: Topbit</title>
		<link>http://akrabat.com/2006/12/23/extending-zend_view_interface-for-use-with-smarty/#comment-20913</link>
		<dc:creator>Topbit</dc:creator>
		<pubDate>Mon, 31 Mar 2008 15:12:09 +0000</pubDate>
		<guid isPermaLink="false">http://www.akrabat.com/2006/12/23/extending-zend_view_interface-for-use-with-smarty/#comment-20913</guid>
		<description>A quick fix to use this this class with ZF1.5+ and Zend_Form.

You have to call the Zend_View_Abstract constructor to set the paths to the helpers (like Zend_Form_Element_Text).

Add to the top of the constructor
parent::__construct(array()); ## add
$this-&#62;_engine = new Smarty(); # as before

Since you are clling the parent - you also have to extend the original

require_once 'Zend/View.php';
class AkCom_View_Smarty extends Zend_View implements Zend_View_Interface &lt;em&gt;....&lt;/em&gt;

# It's also useful to change the AkCom_View_Smarty::__constructor default parameter to 'array()' (from: null), so it can be passed into the constructor unchanged
parent::__construct($params); ## alternate</description>
		<content:encoded><![CDATA[<p>A quick fix to use this this class with ZF1.5+ and Zend_Form.</p>
<p>You have to call the Zend_View_Abstract constructor to set the paths to the helpers (like Zend_Form_Element_Text).</p>
<p>Add to the top of the constructor<br />
parent::__construct(array()); ## add<br />
$this-&gt;_engine = new Smarty(); # as before</p>
<p>Since you are clling the parent - you also have to extend the original</p>
<p>require_once 'Zend/View.php';<br />
class AkCom_View_Smarty extends Zend_View implements Zend_View_Interface <em>&#8230;.</em></p>
<p># It's also useful to change the AkCom_View_Smarty::__constructor default parameter to 'array()' (from: null), so it can be passed into the constructor unchanged<br />
parent::__construct($params); ## alternate</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Lukas</title>
		<link>http://akrabat.com/2006/12/23/extending-zend_view_interface-for-use-with-smarty/#comment-20835</link>
		<dc:creator>Lukas</dc:creator>
		<pubDate>Thu, 27 Mar 2008 14:53:39 +0000</pubDate>
		<guid isPermaLink="false">http://www.akrabat.com/2006/12/23/extending-zend_view_interface-for-use-with-smarty/#comment-20835</guid>
		<description>Can you please do a tutorial for integrating Smarty in to Zend Framework? I'm really confused of it. Everyone make it different, but non of the solution is working for me. Thanks</description>
		<content:encoded><![CDATA[<p>Can you please do a tutorial for integrating Smarty in to Zend Framework? I'm really confused of it. Everyone make it different, but non of the solution is working for me. Thanks</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Rob...</title>
		<link>http://akrabat.com/2006/12/23/extending-zend_view_interface-for-use-with-smarty/#comment-10475</link>
		<dc:creator>Rob...</dc:creator>
		<pubDate>Wed, 06 Jun 2007 15:04:36 +0000</pubDate>
		<guid isPermaLink="false">http://www.akrabat.com/2006/12/23/extending-zend_view_interface-for-use-with-smarty/#comment-10475</guid>
		<description>William,

Shouldn't do as Zend_Controller_Action_Helper_ViewRenderer is written against Zend_View_Interface.

You might need to check if Zend_View_Interface has changed since this was posted though!

Regards,

Rob...</description>
		<content:encoded><![CDATA[<p>William,</p>
<p>Shouldn't do as Zend_Controller_Action_Helper_ViewRenderer is written against Zend_View_Interface.</p>
<p>You might need to check if Zend_View_Interface has changed since this was posted though!</p>
<p>Regards,</p>
<p>Rob&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: William Graham</title>
		<link>http://akrabat.com/2006/12/23/extending-zend_view_interface-for-use-with-smarty/#comment-10474</link>
		<dc:creator>William Graham</dc:creator>
		<pubDate>Wed, 06 Jun 2007 14:32:37 +0000</pubDate>
		<guid isPermaLink="false">http://www.akrabat.com/2006/12/23/extending-zend_view_interface-for-use-with-smarty/#comment-10474</guid>
		<description>Rob, does anything about this change with the ViewRenderer in RC1 of the framework?

Thanks!
William</description>
		<content:encoded><![CDATA[<p>Rob, does anything about this change with the ViewRenderer in RC1 of the framework?</p>
<p>Thanks!<br />
William</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Rob...</title>
		<link>http://akrabat.com/2006/12/23/extending-zend_view_interface-for-use-with-smarty/#comment-9743</link>
		<dc:creator>Rob...</dc:creator>
		<pubDate>Mon, 07 May 2007 18:16:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.akrabat.com/2006/12/23/extending-zend_view_interface-for-use-with-smarty/#comment-9743</guid>
		<description>Sam,

Copy/paste error :) Good catch!

I've updated.

Regards,

Rob...</description>
		<content:encoded><![CDATA[<p>Sam,</p>
<p>Copy/paste error :) Good catch!</p>
<p>I've updated.</p>
<p>Regards,</p>
<p>Rob&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Samuel</title>
		<link>http://akrabat.com/2006/12/23/extending-zend_view_interface-for-use-with-smarty/#comment-9735</link>
		<dc:creator>Samuel</dc:creator>
		<pubDate>Mon, 07 May 2007 11:18:52 +0000</pubDate>
		<guid isPermaLink="false">http://www.akrabat.com/2006/12/23/extending-zend_view_interface-for-use-with-smarty/#comment-9735</guid>
		<description>Rob,

On the setCacheLifetime() function, you use $dir as the variable passing to Smarty, but you're defining it on the function call as $seconds.

--Sam</description>
		<content:encoded><![CDATA[<p>Rob,</p>
<p>On the setCacheLifetime() function, you use $dir as the variable passing to Smarty, but you're defining it on the function call as $seconds.</p>
<p>&#8211;Sam</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Rob...</title>
		<link>http://akrabat.com/2006/12/23/extending-zend_view_interface-for-use-with-smarty/#comment-9219</link>
		<dc:creator>Rob...</dc:creator>
		<pubDate>Mon, 09 Apr 2007 05:11:39 +0000</pubDate>
		<guid isPermaLink="false">http://www.akrabat.com/2006/12/23/extending-zend_view_interface-for-use-with-smarty/#comment-9219</guid>
		<description>Hi Christian,

No reason why not. Just instantiate either a Zend_View or an AkCom_View_Smarty in the controller and and assign to $view before you call initView().

Regards,

Rob...</description>
		<content:encoded><![CDATA[<p>Hi Christian,</p>
<p>No reason why not. Just instantiate either a Zend_View or an AkCom_View_Smarty in the controller and and assign to $view before you call initView().</p>
<p>Regards,</p>
<p>Rob&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Cristian Bichis</title>
		<link>http://akrabat.com/2006/12/23/extending-zend_view_interface-for-use-with-smarty/#comment-9215</link>
		<dc:creator>Cristian Bichis</dc:creator>
		<pubDate>Sun, 08 Apr 2007 23:35:56 +0000</pubDate>
		<guid isPermaLink="false">http://www.akrabat.com/2006/12/23/extending-zend_view_interface-for-use-with-smarty/#comment-9215</guid>
		<description>Hello,

Rob, any idea if works fine for 0.9.x ?

Also, i am thinking that approach for making a new view based sub class is not the best idea when is needed to mix both ZF default view and Smarty view... I am wondering if is not possible to mix both on same class...</description>
		<content:encoded><![CDATA[<p>Hello,</p>
<p>Rob, any idea if works fine for 0.9.x ?</p>
<p>Also, i am thinking that approach for making a new view based sub class is not the best idea when is needed to mix both ZF default view and Smarty view&#8230; I am wondering if is not possible to mix both on same class&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: John</title>
		<link>http://akrabat.com/2006/12/23/extending-zend_view_interface-for-use-with-smarty/#comment-9082</link>
		<dc:creator>John</dc:creator>
		<pubDate>Mon, 02 Apr 2007 18:50:37 +0000</pubDate>
		<guid isPermaLink="false">http://www.akrabat.com/2006/12/23/extending-zend_view_interface-for-use-with-smarty/#comment-9082</guid>
		<description>Great article.  I'm a little confused about how to use it (new to the Framework). Have been using Smarty for a few years and it's really hard to go back to all those php tags in the Framework views.

How have you set up your plugins and templates directories?  How do you use this class within the MVC framework (controllers/models/views)?

Any time for an example?

Thanks.</description>
		<content:encoded><![CDATA[<p>Great article.  I'm a little confused about how to use it (new to the Framework). Have been using Smarty for a few years and it's really hard to go back to all those php tags in the Framework views.</p>
<p>How have you set up your plugins and templates directories?  How do you use this class within the MVC framework (controllers/models/views)?</p>
<p>Any time for an example?</p>
<p>Thanks.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Rob...</title>
		<link>http://akrabat.com/2006/12/23/extending-zend_view_interface-for-use-with-smarty/#comment-6972</link>
		<dc:creator>Rob...</dc:creator>
		<pubDate>Sun, 24 Dec 2006 09:11:39 +0000</pubDate>
		<guid isPermaLink="false">http://www.akrabat.com/2006/12/23/extending-zend_view_interface-for-use-with-smarty/#comment-6972</guid>
		<description>Thanks Nico!

As you can tell, I use Smarty as a black box and should have looked up the source for the bits I didn't know.

I've fixed it in &lt;a href="http://svn.akrabat.com/svnvi.pl?file=Smarty.php&#038;repos=AkCom&#038;path=/trunk/library/AkCom/View rel="nofollow"&gt;SVN &lt;/a&gt; and have updated the code in the post.

Regards,

Rob...</description>
		<content:encoded><![CDATA[<p>Thanks Nico!</p>
<p>As you can tell, I use Smarty as a black box and should have looked up the source for the bits I didn't know.</p>
<p>I've fixed it in <a href="http://svn.akrabat.com/svnvi.pl?file=Smarty.php&#038;repos=AkCom&#038;path=/trunk/library/AkCom/View rel="nofollow">SVN </a> and have updated the code in the post.</p>
<p>Regards,</p>
<p>Rob&#8230;</p>
]]></content:encoded>
	</item>
</channel>
</rss>
