<?xml version="1.0" encoding="utf-8"?>
		<feed xmlns="http://www.w3.org/2005/Atom">
			<title type="text">Akelos PHP Framework Forum - Calling another helper from a helper</title>
			<updated>2010-09-10T08:03:20+02:00</updated>
			<id>http://forum.akelos.org/</id>
			<link rel="alternate" type="text/html" hreflang="en"
				href="http://forum.akelos.org/discussion/?DiscussionID=23&amp;page=1"/>
			<link rel="self" type="application/atom+xml"
				href="http://forum.akelos.org/discussion/?DiscussionID=23&amp;Feed=ATOM&amp;page=1"/>
			<generator
				uri="http://getvanilla.com/"
				version="1.1.4">
				Lussumo Vanilla &amp; Feed Publisher
			</generator>
			<entry>
		<title>Calling another helper from a helper</title>
		<link rel="alternate" href="http://forum.akelos.org/discussion/23/?Focus=134#Comment_134" type="application/xhtml+xml" hreflang="en"/>
		<id>http://forum.akelos.org/discussion/23/?Focus=134#Comment_134</id>
		<published>2007-08-05T09:24:27+02:00</published>
		<updated>2010-09-10T08:03:20+02:00</updated>
		<author>
			<name>iJyrki</name>
			<uri>http://forum.akelos.org/account/9/</uri>
		</author>
		<summary type="text" xml:lang="en">
			Hello again!

Is it possible to call another helper from a helper, e.g. url_helper from application_helper?

Thanks for your help!
-jyrki
		</summary>
		<content type="html">
			<![CDATA[<p>Hello again!</p>

<p>Is it possible to call another helper from a helper, e.g. url_helper from application_helper?</p>

<p>Thanks for your help!
-jyrki</p>
]]>
		</content>
	</entry>
	<entry>
		<title>Calling another helper from a helper</title>
		<link rel="alternate" href="http://forum.akelos.org/discussion/23/?Focus=135#Comment_135" type="application/xhtml+xml" hreflang="en"/>
		<id>http://forum.akelos.org/discussion/23/?Focus=135#Comment_135</id>
		<published>2007-08-05T11:22:47+02:00</published>
		<updated>2010-09-10T08:03:20+02:00</updated>
		<author>
			<name>bermi</name>
			<uri>http://forum.akelos.org/account/1/</uri>
		</author>
		<summary type="text" xml:lang="en">
			You can do this via the $this-&gt;_controller reference, but your helper needs to extend AkActionViewHelper

Here is an example

    class ApplicationHelper extends AkActionViewHelper
    {
    ...
		</summary>
		<content type="html">
			<![CDATA[<p>You can do this via the $this->_controller reference, but your helper needs to extend AkActionViewHelper</p>

<p>Here is an example</p>

<pre><code>class ApplicationHelper extends AkActionViewHelper
{
    function app_link_to($name, $options)
    {
        return $this-&gt;_controller-&gt;url_helper-&gt;link_to($name, $options);
    }
}
</code></pre>
]]>
		</content>
	</entry>
	<entry>
		<title>Calling another helper from a helper</title>
		<link rel="alternate" href="http://forum.akelos.org/discussion/23/?Focus=136#Comment_136" type="application/xhtml+xml" hreflang="en"/>
		<id>http://forum.akelos.org/discussion/23/?Focus=136#Comment_136</id>
		<published>2007-08-05T11:45:46+02:00</published>
		<updated>2010-09-10T08:03:20+02:00</updated>
		<author>
			<name>iJyrki</name>
			<uri>http://forum.akelos.org/account/9/</uri>
		</author>
		<summary type="text" xml:lang="en">
			Thanks. I had tried the approach previously but failed. Now it works. Propably I just forgot a letter or so...

-jyrki
		</summary>
		<content type="html">
			<![CDATA[<p>Thanks. I had tried the approach previously but failed. Now it works. Propably I just forgot a letter or so...</p>

<p>-jyrki</p>
]]>
		</content>
	</entry>
	
		</feed>