<?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: Lorem ipsum view helper</title>
	<atom:link href="http://naneau.nl/2007/06/18/lorem-ipsum-view-helper/feed/" rel="self" type="application/rss+xml" />
	<link>http://naneau.nl/2007/06/18/lorem-ipsum-view-helper/</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: Glîndûwath</title>
		<link>http://naneau.nl/2007/06/18/lorem-ipsum-view-helper/comment-page-1/#comment-12156</link>
		<dc:creator>Glîndûwath</dc:creator>
		<pubDate>Fri, 25 Jan 2008 12:34:54 +0000</pubDate>
		<guid isPermaLink="false">http://naneau.nl/2007/06/18/lorem-ipsum-view-helper/#comment-12156</guid>
		<description>If you&#039;re using Zend_Layout it&#039;s simple. Bootstrap file:
...
$layout = new Zend_Layout(...);
$layout-&gt;getView()-&gt;addHelperPath(&#039;/Naneau/View/Helper/&#039;, &#039;Naneau_View_Helper&#039;);
...</description>
		<content:encoded><![CDATA[<p>If you&#8217;re using Zend_Layout it&#8217;s simple. Bootstrap file:<br />
&#8230;<br />
$layout = new Zend_Layout(&#8230;);<br />
$layout-&gt;getView()-&gt;addHelperPath(&#8216;/Naneau/View/Helper/&#8217;, &#8216;Naneau_View_Helper&#8217;);<br />
&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Stuart</title>
		<link>http://naneau.nl/2007/06/18/lorem-ipsum-view-helper/comment-page-1/#comment-2381</link>
		<dc:creator>Stuart</dc:creator>
		<pubDate>Mon, 10 Sep 2007 01:11:58 +0000</pubDate>
		<guid isPermaLink="false">http://naneau.nl/2007/06/18/lorem-ipsum-view-helper/#comment-2381</guid>
		<description>I&#039;m confused about the viewRenderer. If I create the action helper in my bootstrap as you indicate, where would I call $viewRenderer-&gt;view-&gt;addHelperPath(’/Naneau/View/Helper/’, ‘Naneau_View_Helper_’);

If I put $viewRenderer-&gt;view-&gt;addHelperPath(’/Naneau/View/Helper/’, ‘Naneau_View_Helper_’); in my controller init, I get a &quot;Notice: Undefined variable: viewRenderer&quot; (but I declared it in the bootstrap? Didn&#039;t I?)

If I put it in my bootstrap I get a &quot;Call to a member function addHelperPath() on a non-object&quot; 

So... where does it go?</description>
		<content:encoded><![CDATA[<p>I&#8217;m confused about the viewRenderer. If I create the action helper in my bootstrap as you indicate, where would I call $viewRenderer-&gt;view-&gt;addHelperPath(’/Naneau/View/Helper/’, ‘Naneau_View_Helper_’);</p>
<p>If I put $viewRenderer-&gt;view-&gt;addHelperPath(’/Naneau/View/Helper/’, ‘Naneau_View_Helper_’); in my controller init, I get a &#8220;Notice: Undefined variable: viewRenderer&#8221; (but I declared it in the bootstrap? Didn&#8217;t I?)</p>
<p>If I put it in my bootstrap I get a &#8220;Call to a member function addHelperPath() on a non-object&#8221; </p>
<p>So&#8230; where does it go?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Stuart</title>
		<link>http://naneau.nl/2007/06/18/lorem-ipsum-view-helper/comment-page-1/#comment-2377</link>
		<dc:creator>Stuart</dc:creator>
		<pubDate>Sun, 09 Sep 2007 21:22:43 +0000</pubDate>
		<guid isPermaLink="false">http://naneau.nl/2007/06/18/lorem-ipsum-view-helper/#comment-2377</guid>
		<description>When using this I get a STRICT warning about:
&quot;Non-static method Mine_View_Helper_Filler::getParagraphs() should not be called statically&quot;
How should it be called?</description>
		<content:encoded><![CDATA[<p>When using this I get a STRICT warning about:<br />
&#8220;Non-static method Mine_View_Helper_Filler::getParagraphs() should not be called statically&#8221;<br />
How should it be called?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Naneau</title>
		<link>http://naneau.nl/2007/06/18/lorem-ipsum-view-helper/comment-page-1/#comment-2375</link>
		<dc:creator>Naneau</dc:creator>
		<pubDate>Sun, 09 Sep 2007 19:31:41 +0000</pubDate>
		<guid isPermaLink="false">http://naneau.nl/2007/06/18/lorem-ipsum-view-helper/#comment-2375</guid>
		<description>I would certainly suggest you set up your view&#039;s helper paths in your bootstrap. The trick is using viewRenderer to modify the view object. You can retrieve it from the action helper as it&#039;s a public property.

In your bootstrap you can create the action helper:
$viewRenderer = new Zend_Controller_Action_Helper_ViewRenderer();

Then use it&#039;s view object to do whatever you want (including setting values):
$viewRenderer-&gt;view-&gt;addHelperPath(’/Naneau/View/Helper/’, ‘Naneau_View_Helper_’);</description>
		<content:encoded><![CDATA[<p>I would certainly suggest you set up your view&#8217;s helper paths in your bootstrap. The trick is using viewRenderer to modify the view object. You can retrieve it from the action helper as it&#8217;s a public property.</p>
<p>In your bootstrap you can create the action helper:<br />
$viewRenderer = new Zend_Controller_Action_Helper_ViewRenderer();</p>
<p>Then use it&#8217;s view object to do whatever you want (including setting values):<br />
$viewRenderer->view->addHelperPath(’/Naneau/View/Helper/’, ‘Naneau_View_Helper_’);</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Stuart</title>
		<link>http://naneau.nl/2007/06/18/lorem-ipsum-view-helper/comment-page-1/#comment-2350</link>
		<dc:creator>Stuart</dc:creator>
		<pubDate>Sun, 09 Sep 2007 04:05:15 +0000</pubDate>
		<guid isPermaLink="false">http://naneau.nl/2007/06/18/lorem-ipsum-view-helper/#comment-2350</guid>
		<description>Hold on, you can&#039;t just add $view-&gt;addHelperPath(’/Naneau/View/Helper/’, ‘Naneau_View_Helper_’);  to your bootstrap. You have to define $view first if you do that, correct? 
Perhaps it would work better if you stuck in the controller&#039;s init method with $this-&gt;view-&gt;addHelperPath(&#039;/foo/&#039;,&#039;foo&#039;); ?</description>
		<content:encoded><![CDATA[<p>Hold on, you can&#8217;t just add $view-&gt;addHelperPath(’/Naneau/View/Helper/’, ‘Naneau_View_Helper_’);  to your bootstrap. You have to define $view first if you do that, correct?<br />
Perhaps it would work better if you stuck in the controller&#8217;s init method with $this-&gt;view-&gt;addHelperPath(&#8216;/foo/&#8217;,'foo&#8217;); ?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Naneau</title>
		<link>http://naneau.nl/2007/06/18/lorem-ipsum-view-helper/comment-page-1/#comment-2008</link>
		<dc:creator>Naneau</dc:creator>
		<pubDate>Fri, 31 Aug 2007 14:32:50 +0000</pubDate>
		<guid isPermaLink="false">http://naneau.nl/2007/06/18/lorem-ipsum-view-helper/#comment-2008</guid>
		<description>yup, if you put it in your library under /Naneau/View/Helper/LoremIpsum.php (like you should if you follow the coding standard), that is the way to make the view object find it.</description>
		<content:encoded><![CDATA[<p>yup, if you put it in your library under /Naneau/View/Helper/LoremIpsum.php (like you should if you follow the coding standard), that is the way to make the view object find it.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: _ploum_</title>
		<link>http://naneau.nl/2007/06/18/lorem-ipsum-view-helper/comment-page-1/#comment-1947</link>
		<dc:creator>_ploum_</dc:creator>
		<pubDate>Thu, 30 Aug 2007 10:35:58 +0000</pubDate>
		<guid isPermaLink="false">http://naneau.nl/2007/06/18/lorem-ipsum-view-helper/#comment-1947</guid>
		<description>Am I right if I suggere to add 
$view-&gt;addHelperPath(&#039;/Naneau/View/Helper/&#039;, &#039;Naneau_View_Helper_&#039;);
in the bootstrap to make this work ?</description>
		<content:encoded><![CDATA[<p>Am I right if I suggere to add<br />
$view-&gt;addHelperPath(&#8216;/Naneau/View/Helper/&#8217;, &#8216;Naneau_View_Helper_&#8217;);<br />
in the bootstrap to make this work ?</p>
]]></content:encoded>
	</item>
</channel>
</rss>
