<?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 a helper inside another helper</title>
	<atom:link href="http://cakebaker.42dh.com/2007/02/19/using-a-helper-inside-another-helper/feed/" rel="self" type="application/rss+xml" />
	<link>http://cakebaker.42dh.com/2007/02/19/using-a-helper-inside-another-helper/</link>
	<description>baking cakes with CakePHP</description>
	<lastBuildDate>Tue, 31 Jan 2012 15:12:14 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
	<item>
		<title>By: cakebaker</title>
		<link>http://cakebaker.42dh.com/2007/02/19/using-a-helper-inside-another-helper/comment-page-1/#comment-255583</link>
		<dc:creator>cakebaker</dc:creator>
		<pubDate>Tue, 20 Dec 2011 16:08:59 +0000</pubDate>
		<guid isPermaLink="false">http://cakebaker.42dh.com/2007/02/19/using-a-helper-inside-another-helper/#comment-255583</guid>
		<description>@Rodrigo: To avoid loading the helper for the entire helper class, you can use the approach I posted as &lt;a href=&quot;http://cakebaker.42dh.com/2007/02/19/using-a-helper-inside-another-helper/comment-page-1/#comment-136342&quot; rel=&quot;nofollow&quot;&gt;answer&lt;/a&gt; to @enrique&#039;s comment.</description>
		<content:encoded><![CDATA[<p>@Rodrigo: To avoid loading the helper for the entire helper class, you can use the approach I posted as <a href="http://cakebaker.42dh.com/2007/02/19/using-a-helper-inside-another-helper/comment-page-1/#comment-136342" rel="nofollow">answer</a> to @enrique&#8217;s comment.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Rodrigo Silveira</title>
		<link>http://cakebaker.42dh.com/2007/02/19/using-a-helper-inside-another-helper/comment-page-1/#comment-252396</link>
		<dc:creator>Rodrigo Silveira</dc:creator>
		<pubDate>Mon, 12 Dec 2011 15:59:14 +0000</pubDate>
		<guid isPermaLink="false">http://cakebaker.42dh.com/2007/02/19/using-a-helper-inside-another-helper/#comment-252396</guid>
		<description>I tried what @enrique mentioned, since that method works on controllers just fine. But the only way I can get it to work is by using the original method mentioned in this post, which is by importing the helper to the entire helper class.</description>
		<content:encoded><![CDATA[<p>I tried what @enrique mentioned, since that method works on controllers just fine. But the only way I can get it to work is by using the original method mentioned in this post, which is by importing the helper to the entire helper class.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: cakebaker</title>
		<link>http://cakebaker.42dh.com/2007/02/19/using-a-helper-inside-another-helper/comment-page-1/#comment-202639</link>
		<dc:creator>cakebaker</dc:creator>
		<pubDate>Mon, 30 May 2011 14:18:29 +0000</pubDate>
		<guid isPermaLink="false">http://cakebaker.42dh.com/2007/02/19/using-a-helper-inside-another-helper/#comment-202639</guid>
		<description>@Bill: You are welcome :)</description>
		<content:encoded><![CDATA[<p>@Bill: You are welcome :)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Bill Tetley</title>
		<link>http://cakebaker.42dh.com/2007/02/19/using-a-helper-inside-another-helper/comment-page-1/#comment-201741</link>
		<dc:creator>Bill Tetley</dc:creator>
		<pubDate>Thu, 26 May 2011 20:56:11 +0000</pubDate>
		<guid isPermaLink="false">http://cakebaker.42dh.com/2007/02/19/using-a-helper-inside-another-helper/#comment-201741</guid>
		<description>Thanks, I&#039;ve been trying to figure out how to do this for a few hours already.</description>
		<content:encoded><![CDATA[<p>Thanks, I&#8217;ve been trying to figure out how to do this for a few hours already.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: cakebaker</title>
		<link>http://cakebaker.42dh.com/2007/02/19/using-a-helper-inside-another-helper/comment-page-1/#comment-175273</link>
		<dc:creator>cakebaker</dc:creator>
		<pubDate>Fri, 24 Sep 2010 14:15:22 +0000</pubDate>
		<guid isPermaLink="false">http://cakebaker.42dh.com/2007/02/19/using-a-helper-inside-another-helper/#comment-175273</guid>
		<description>@brendan: You are welcome :)</description>
		<content:encoded><![CDATA[<p>@brendan: You are welcome :)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: brendan</title>
		<link>http://cakebaker.42dh.com/2007/02/19/using-a-helper-inside-another-helper/comment-page-1/#comment-175149</link>
		<dc:creator>brendan</dc:creator>
		<pubDate>Thu, 23 Sep 2010 08:46:00 +0000</pubDate>
		<guid isPermaLink="false">http://cakebaker.42dh.com/2007/02/19/using-a-helper-inside-another-helper/#comment-175149</guid>
		<description>thanks for this, so simple but took ages to get this info, c&#039;est la cake</description>
		<content:encoded><![CDATA[<p>thanks for this, so simple but took ages to get this info, c&#8217;est la cake</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: cakebaker</title>
		<link>http://cakebaker.42dh.com/2007/02/19/using-a-helper-inside-another-helper/comment-page-1/#comment-136342</link>
		<dc:creator>cakebaker</dc:creator>
		<pubDate>Mon, 14 Sep 2009 15:21:32 +0000</pubDate>
		<guid isPermaLink="false">http://cakebaker.42dh.com/2007/02/19/using-a-helper-inside-another-helper/#comment-136342</guid>
		<description>@enrique: Thanks for your comment!

You could use something like:
&lt;code&gt;
function getTheLink() {
    App::import(&#039;Helper&#039;, &#039;Html&#039;);
    $this-&gt;Html = new HtmlHelper();

    return $this-&gt;Html-&gt;link(&#039;The link&#039;, &#039;/&#039;);
}
&lt;/code&gt;
And depending on the helper you want to load you have to do some initializations. 

However, if possible, I would avoid this approach and use what I described in the article ;-)</description>
		<content:encoded><![CDATA[<p>@enrique: Thanks for your comment!</p>
<p>You could use something like:<br />
<pre><code>function getTheLink() {
    App::import('Helper', 'Html');
    $this-&gt;Html = new HtmlHelper();

    return $this-&gt;Html-&gt;link('The link', '/');
}</code></pre><br />
And depending on the helper you want to load you have to do some initializations. </p>
<p>However, if possible, I would avoid this approach and use what I described in the article ;-)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: enrique</title>
		<link>http://cakebaker.42dh.com/2007/02/19/using-a-helper-inside-another-helper/comment-page-1/#comment-136326</link>
		<dc:creator>enrique</dc:creator>
		<pubDate>Mon, 14 Sep 2009 09:52:19 +0000</pubDate>
		<guid isPermaLink="false">http://cakebaker.42dh.com/2007/02/19/using-a-helper-inside-another-helper/#comment-136326</guid>
		<description>Hi, thanks for the article!

Is it possible to request a helper inside a helper&#039;s method? Same as you would do in a controller&#039;s action instead of the entire controller?

function getTheLink() {
             var $helpers[] = &#039;Html&#039;;
           
             return $this-&gt;Html-&gt;link(&#039;The link&#039;, &#039;/&#039;);            
}</description>
		<content:encoded><![CDATA[<p>Hi, thanks for the article!</p>
<p>Is it possible to request a helper inside a helper&#8217;s method? Same as you would do in a controller&#8217;s action instead of the entire controller?</p>
<p>function getTheLink() {<br />
             var $helpers[] = &#8216;Html&#8217;;</p>
<p>             return $this-&gt;Html-&gt;link(&#8216;The link&#8217;, &#8216;/&#8217;);<br />
}</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: cakebaker</title>
		<link>http://cakebaker.42dh.com/2007/02/19/using-a-helper-inside-another-helper/comment-page-1/#comment-132900</link>
		<dc:creator>cakebaker</dc:creator>
		<pubDate>Thu, 16 Jul 2009 14:05:49 +0000</pubDate>
		<guid isPermaLink="false">http://cakebaker.42dh.com/2007/02/19/using-a-helper-inside-another-helper/#comment-132900</guid>
		<description>@Dan: I&#039;m glad this article was helpful for you, and happy baking!</description>
		<content:encoded><![CDATA[<p>@Dan: I&#8217;m glad this article was helpful for you, and happy baking!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Dan</title>
		<link>http://cakebaker.42dh.com/2007/02/19/using-a-helper-inside-another-helper/comment-page-1/#comment-132888</link>
		<dc:creator>Dan</dc:creator>
		<pubDate>Thu, 16 Jul 2009 05:45:29 +0000</pubDate>
		<guid isPermaLink="false">http://cakebaker.42dh.com/2007/02/19/using-a-helper-inside-another-helper/#comment-132888</guid>
		<description>Thanks for posting this. It was exactly what I was looking for as I wasn&#039;t quite sure how to access a helper from within a helper.</description>
		<content:encoded><![CDATA[<p>Thanks for posting this. It was exactly what I was looking for as I wasn&#8217;t quite sure how to access a helper from within a helper.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

