Akelos Framework v1 forum archive. This forum is no longer maintained. To report bugs please visit https://github.com/akelos/akelos/issues
    • CommentAuthoriJyrki
     

    Hello again!

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

    Thanks for your help! -jyrki

    •  
      CommentAuthorbermi
     

    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);
        }
    }
    
    • CommentAuthoriJyrki
     

    Thanks. I had tried the approach previously but failed. Now it works. Propably I just forgot a letter or so...

    -jyrki