<?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>Wed, 28 Jul 2010 19:06:52 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
	<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>
	<item>
		<title>By: cakebaker</title>
		<link>http://cakebaker.42dh.com/2007/02/19/using-a-helper-inside-another-helper/comment-page-1/#comment-116755</link>
		<dc:creator>cakebaker</dc:creator>
		<pubDate>Wed, 07 Jan 2009 16:49:13 +0000</pubDate>
		<guid isPermaLink="false">http://cakebaker.42dh.com/2007/02/19/using-a-helper-inside-another-helper/#comment-116755</guid>
		<description>@Kym: You are welcome!</description>
		<content:encoded><![CDATA[<p>@Kym: You are welcome!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Kym</title>
		<link>http://cakebaker.42dh.com/2007/02/19/using-a-helper-inside-another-helper/comment-page-1/#comment-116707</link>
		<dc:creator>Kym</dc:creator>
		<pubDate>Wed, 07 Jan 2009 02:07:10 +0000</pubDate>
		<guid isPermaLink="false">http://cakebaker.42dh.com/2007/02/19/using-a-helper-inside-another-helper/#comment-116707</guid>
		<description>Hey thanks so much, I was using it without $this!</description>
		<content:encoded><![CDATA[<p>Hey thanks so much, I was using it without $this!</p>
]]></content:encoded>
	</item>
</channel>
</rss>
