<?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: Using Naneau_View_Smarty with RC1</title>
	<atom:link href="http://naneau.nl/2007/05/31/using-naneau_view_smarty-with-rc1/feed/" rel="self" type="application/rss+xml" />
	<link>http://naneau.nl/2007/05/31/using-naneau_view_smarty-with-rc1/</link>
	<description>Go dik-dik, go!</description>
	<lastBuildDate>Mon, 26 Jul 2010 04:31:02 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.1</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Tjuba</title>
		<link>http://naneau.nl/2007/05/31/using-naneau_view_smarty-with-rc1/comment-page-2/#comment-99804</link>
		<dc:creator>Tjuba</dc:creator>
		<pubDate>Mon, 22 Feb 2010 14:22:19 +0000</pubDate>
		<guid isPermaLink="false">http://naneau.nl/2007/05/31/using-naneau_view_smarty-with-rc1/#comment-99804</guid>
		<description>Ok and now a virsion to work with ZF 1.10???

Many tuts i find abouth smarty and ZF are very old!</description>
		<content:encoded><![CDATA[<p>Ok and now a virsion to work with ZF 1.10???</p>
<p>Many tuts i find abouth smarty and ZF are very old!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Peter</title>
		<link>http://naneau.nl/2007/05/31/using-naneau_view_smarty-with-rc1/comment-page-2/#comment-87735</link>
		<dc:creator>Peter</dc:creator>
		<pubDate>Sat, 22 Aug 2009 20:02:36 +0000</pubDate>
		<guid isPermaLink="false">http://naneau.nl/2007/05/31/using-naneau_view_smarty-with-rc1/#comment-87735</guid>
		<description>Hi, 

thanks for this fantastic class. I use it with the new 1.9.1 version and it works very fine.</description>
		<content:encoded><![CDATA[<p>Hi, </p>
<p>thanks for this fantastic class. I use it with the new 1.9.1 version and it works very fine.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Naneau &#34; Using Naneau_View_Smarty with RC1</title>
		<link>http://naneau.nl/2007/05/31/using-naneau_view_smarty-with-rc1/comment-page-2/#comment-65100</link>
		<dc:creator>Naneau &#34; Using Naneau_View_Smarty with RC1</dc:creator>
		<pubDate>Thu, 07 May 2009 20:54:10 +0000</pubDate>
		<guid isPermaLink="false">http://naneau.nl/2007/05/31/using-naneau_view_smarty-with-rc1/#comment-65100</guid>
		<description>[...] the article here: Naneau &quot; Using Naneau_View_Smarty with RC1   Share and [...]</description>
		<content:encoded><![CDATA[<p>[...] the article here: Naneau &quot; Using Naneau_View_Smarty with RC1   Share and [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: peterwang</title>
		<link>http://naneau.nl/2007/05/31/using-naneau_view_smarty-with-rc1/comment-page-2/#comment-35335</link>
		<dc:creator>peterwang</dc:creator>
		<pubDate>Tue, 16 Dec 2008 02:52:14 +0000</pubDate>
		<guid isPermaLink="false">http://naneau.nl/2007/05/31/using-naneau_view_smarty-with-rc1/#comment-35335</guid>
		<description>Hi,
it&#039;s a great post.
i have a question: if i have two modules, say &#039;default&#039; and &#039;foo&#039;, both module use some common view scripts, ie, footer.tpl, header.tpl, etc. so how can i make view scripts in both module include these common files, use smarty include. thanks.

one solution i may use was put view scripts of all modules in a dir, and change,and use setViewBasePathSpec(), setViewScriptPathSpec() change its default behaviors. so is there any better solutions?</description>
		<content:encoded><![CDATA[<p>Hi,<br />
it&#8217;s a great post.<br />
i have a question: if i have two modules, say &#8216;default&#8217; and &#8216;foo&#8217;, both module use some common view scripts, ie, footer.tpl, header.tpl, etc. so how can i make view scripts in both module include these common files, use smarty include. thanks.</p>
<p>one solution i may use was put view scripts of all modules in a dir, and change,and use setViewBasePathSpec(), setViewScriptPathSpec() change its default behaviors. so is there any better solutions?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mario</title>
		<link>http://naneau.nl/2007/05/31/using-naneau_view_smarty-with-rc1/comment-page-1/#comment-23521</link>
		<dc:creator>Mario</dc:creator>
		<pubDate>Mon, 30 Jun 2008 20:38:45 +0000</pubDate>
		<guid isPermaLink="false">http://naneau.nl/2007/05/31/using-naneau_view_smarty-with-rc1/#comment-23521</guid>
		<description>Hi,

I was wondering if there is a final (newer) version of the class with the same-name-problem solved (see post from Marineau - January 12, 2008)</description>
		<content:encoded><![CDATA[<p>Hi,</p>
<p>I was wondering if there is a final (newer) version of the class with the same-name-problem solved (see post from Marineau &#8211; January 12, 2008)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Claudio Silva</title>
		<link>http://naneau.nl/2007/05/31/using-naneau_view_smarty-with-rc1/comment-page-1/#comment-22274</link>
		<dc:creator>Claudio Silva</dc:creator>
		<pubDate>Mon, 16 Jun 2008 12:03:19 +0000</pubDate>
		<guid isPermaLink="false">http://naneau.nl/2007/05/31/using-naneau_view_smarty-with-rc1/#comment-22274</guid>
		<description>Hi Naneau,
Congratulations for your work! 

I have a question ... 
I&#039;m using Naneau_View_Smarty and must also use the Zend_Layout ... 
But not  been successful.. :(

Here is the code:

In layout.phtml: (this is the layout that I call in bootstrap with the Zend_layout)

{$this-&gt;render(&#039;top.phtml&#039;)}
{$this-&gt;render(&#039;left.phtml&#039;)}
{$this-&gt;layout()-&gt;content}&lt;!-- the view index.phtml --&gt;
{$this-&gt;render(&#039;footer.phtml&#039;)}

The render with top, left, and footer pages that&#039;s all ok! But the content don&#039;t work as well..

The error:
Fatal error: Smarty error: [in layout.phtml line 21]: syntax error: unrecognized tag: $this-&gt;layout()-&gt;content (Smarty_Compiler.class.php, line 446) in C:xampphtdocscria_projetositelibSmartySmarty.class.php on line 1091

how can I solve this?
Have I another way to render the view page (for example: index.phtml) in the div &quot;content&quot;?

Your blog is great!

Thanks.. :)</description>
		<content:encoded><![CDATA[<p>Hi Naneau,<br />
Congratulations for your work! </p>
<p>I have a question &#8230;<br />
I&#8217;m using Naneau_View_Smarty and must also use the Zend_Layout &#8230;<br />
But not  been successful.. <img src='http://naneau.nl/wp-includes/images/smilies/icon_sad.gif' alt=':(' class='wp-smiley' /> </p>
<p>Here is the code:</p>
<p>In layout.phtml: (this is the layout that I call in bootstrap with the Zend_layout)</p>
<p>{$this-&gt;render(&#8216;top.phtml&#8217;)}<br />
{$this-&gt;render(&#8216;left.phtml&#8217;)}<br />
{$this-&gt;layout()-&gt;content}<!-- the view index.phtml --><br />
{$this-&gt;render(&#8216;footer.phtml&#8217;)}</p>
<p>The render with top, left, and footer pages that&#8217;s all ok! But the content don&#8217;t work as well..</p>
<p>The error:<br />
Fatal error: Smarty error: [in layout.phtml line 21]: syntax error: unrecognized tag: $this-&gt;layout()-&gt;content (Smarty_Compiler.class.php, line 446) in C:xampphtdocscria_projetositelibSmartySmarty.class.php on line 1091</p>
<p>how can I solve this?<br />
Have I another way to render the view page (for example: index.phtml) in the div &#8220;content&#8221;?</p>
<p>Your blog is great!</p>
<p>Thanks.. <img src='http://naneau.nl/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Smarty + Zend_Framework y(&#38;) php &#171; CuatroXL - Cuatro Xl</title>
		<link>http://naneau.nl/2007/05/31/using-naneau_view_smarty-with-rc1/comment-page-1/#comment-15951</link>
		<dc:creator>Smarty + Zend_Framework y(&#38;) php &#171; CuatroXL - Cuatro Xl</dc:creator>
		<pubDate>Mon, 25 Feb 2008 18:37:03 +0000</pubDate>
		<guid isPermaLink="false">http://naneau.nl/2007/05/31/using-naneau_view_smarty-with-rc1/#comment-15951</guid>
		<description>[...] Integración de Smarty y Zend_Framework I (incluye la clase para integrar)  Integración de Smarty y Zend_Framework II [...]</description>
		<content:encoded><![CDATA[<p>[...] Integración de Smarty y Zend_Framework I (incluye la clase para integrar)  Integración de Smarty y Zend_Framework II [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Marinel</title>
		<link>http://naneau.nl/2007/05/31/using-naneau_view_smarty-with-rc1/comment-page-1/#comment-10495</link>
		<dc:creator>Marinel</dc:creator>
		<pubDate>Sat, 12 Jan 2008 16:13:30 +0000</pubDate>
		<guid isPermaLink="false">http://naneau.nl/2007/05/31/using-naneau_view_smarty-with-rc1/#comment-10495</guid>
		<description>Hi Naneau,

Your blog is great.

Recently I bumped into the following problem:
I am using a conventional modular directory layout.
When I access 
http://...../myapp/mymodule/index/index

I keep getting the result (view output) of 
http://...../myapp/default/index/index

So, after a lot of digging, I found that when I&#039;m using 
the same compile_dir for all the templates, I should use 
a different $compile_id when fetching for templates 
that have the same filename. (my case: index.tpl)
     
I included here a snippet of code thast illustrates the
modification made to your class.

        Naneau_View_Smarty.php

        [...]

        $this-&gt;_smarty-&gt;template_dir = $path[0];
        //set the template diretory as the first directory from the path
        
        /**
         * fetch the template assigning a compile_id, so it can distinguish
         * between the same filenames but different template_paths
         * 
         * @author Marinel Marian
         */
        echo $this-&gt;_smarty-&gt;fetch($file, null, $path[0]);
        //process the template (and filter the output)

        [...]

Just thought to post this in case anybody has the same problem.

Keep up the good work.</description>
		<content:encoded><![CDATA[<p>Hi Naneau,</p>
<p>Your blog is great.</p>
<p>Recently I bumped into the following problem:<br />
I am using a conventional modular directory layout.<br />
When I access<br />
<a href="http://...../myapp/mymodule/index/index" rel="nofollow" onclick="pageTracker._trackPageview('/outgoing/...../myapp/mymodule/index/index?referer=');">http://&#8230;../myapp/mymodule/index/index</a></p>
<p>I keep getting the result (view output) of<br />
<a href="http://...../myapp/default/index/index" rel="nofollow" onclick="pageTracker._trackPageview('/outgoing/...../myapp/default/index/index?referer=');">http://&#8230;../myapp/default/index/index</a></p>
<p>So, after a lot of digging, I found that when I&#8217;m using<br />
the same compile_dir for all the templates, I should use<br />
a different $compile_id when fetching for templates<br />
that have the same filename. (my case: index.tpl)</p>
<p>I included here a snippet of code thast illustrates the<br />
modification made to your class.</p>
<p>        Naneau_View_Smarty.php</p>
<p>        [...]</p>
<p>        $this-&gt;_smarty-&gt;template_dir = $path[0];<br />
        //set the template diretory as the first directory from the path</p>
<p>        /**<br />
         * fetch the template assigning a compile_id, so it can distinguish<br />
         * between the same filenames but different template_paths<br />
         *<br />
         * @author Marinel Marian<br />
         */<br />
        echo $this-&gt;_smarty-&gt;fetch($file, null, $path[0]);<br />
        //process the template (and filter the output)</p>
<p>        [...]</p>
<p>Just thought to post this in case anybody has the same problem.</p>
<p>Keep up the good work.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: SvenH</title>
		<link>http://naneau.nl/2007/05/31/using-naneau_view_smarty-with-rc1/comment-page-1/#comment-6637</link>
		<dc:creator>SvenH</dc:creator>
		<pubDate>Mon, 10 Dec 2007 13:46:26 +0000</pubDate>
		<guid isPermaLink="false">http://naneau.nl/2007/05/31/using-naneau_view_smarty-with-rc1/#comment-6637</guid>
		<description>Found my mistake - I accessed the Zend_Config in a wrong way. Smarty templates are now loaded.</description>
		<content:encoded><![CDATA[<p>Found my mistake &#8211; I accessed the Zend_Config in a wrong way. Smarty templates are now loaded.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: SvenH</title>
		<link>http://naneau.nl/2007/05/31/using-naneau_view_smarty-with-rc1/comment-page-1/#comment-6150</link>
		<dc:creator>SvenH</dc:creator>
		<pubDate>Fri, 30 Nov 2007 15:26:23 +0000</pubDate>
		<guid isPermaLink="false">http://naneau.nl/2007/05/31/using-naneau_view_smarty-with-rc1/#comment-6150</guid>
		<description>I keep getting an empty/blank page. :-(

My bootstrap looks like:

setView( new Naneau_View_Smarty( array( &#039;compileDir&#039; =&gt; $applicationConfigs-&gt;get( &#039;smarty.compile_dir&#039; ) ) ) );
$viewRenderer-&gt;setViewSuffix( &#039;tpl&#039; );
Zend_Controller_Action_HelperBroker::addHelper( $viewRenderer );

$frontController = Zend_Controller_Front::getInstance();
$frontController-&gt;registerPlugin( new Zend_Controller_Plugin_ErrorHandler() );
$frontController-&gt;setControllerDirectory( array( &#039;default&#039; =&gt; Zend_Registry::get( &#039;appConfigs&#039; )-&gt;application-&gt;path . &#039;controllers&#039; ) );
$frontController-&gt;throwExceptions( true );
$frontController-&gt;setParam( &#039;noViewRenderer&#039;, true );

$frontController-&gt;dispatch();
?&gt;

index.phtml and index.tpl both reside in /application/views/scripts/index
The IndexController has an empty method &#039;indexAction()&#039;.

What am I doing wrong?</description>
		<content:encoded><![CDATA[<p>I keep getting an empty/blank page. <img src='http://naneau.nl/wp-includes/images/smilies/icon_sad.gif' alt=':-(' class='wp-smiley' /> </p>
<p>My bootstrap looks like:</p>
<p>setView( new Naneau_View_Smarty( array( &#8216;compileDir&#8217; =&gt; $applicationConfigs-&gt;get( &#8217;smarty.compile_dir&#8217; ) ) ) );<br />
$viewRenderer-&gt;setViewSuffix( &#8216;tpl&#8217; );<br />
Zend_Controller_Action_HelperBroker::addHelper( $viewRenderer );</p>
<p>$frontController = Zend_Controller_Front::getInstance();<br />
$frontController-&gt;registerPlugin( new Zend_Controller_Plugin_ErrorHandler() );<br />
$frontController-&gt;setControllerDirectory( array( &#8216;default&#8217; =&gt; Zend_Registry::get( &#8216;appConfigs&#8217; )-&gt;application-&gt;path . &#8216;controllers&#8217; ) );<br />
$frontController-&gt;throwExceptions( true );<br />
$frontController-&gt;setParam( &#8216;noViewRenderer&#8217;, true );</p>
<p>$frontController-&gt;dispatch();<br />
?&gt;</p>
<p>index.phtml and index.tpl both reside in /application/views/scripts/index<br />
The IndexController has an empty method &#8216;indexAction()&#8217;.</p>
<p>What am I doing wrong?</p>
]]></content:encoded>
	</item>
</channel>
</rss>
