Hello again!
Is it possible to call another helper from a helper, e.g. url_helper from application_helper?
Thanks for your help! -jyrki
You can do this via the $this->_controller reference, but your helper needs to extend AkActionViewHelper
Here is an example
class ApplicationHelper extends AkActionViewHelper
{
function app_link_to($name, $options)
{
return $this->_controller->url_helper->link_to($name, $options);
}
}
Thanks. I had tried the approach previously but failed. Now it works. Propably I just forgot a letter or so...
-jyrki
1 to 3 of 3