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

    Hello Everyone, I am thankful that there's a place where i can post my questions after not finding anything by googling.

    • How can I use the url_for() helper method inside a model?

    • On the other hand, How can I use a model inside a helper file?

    Thanks in advance

    • CommentAuthorKaste
     
    1. usually you can't use helpers inside a model. url_for relies on controller->urlFor() f.i.

    2. include or Ak::import(...) your model and instantiate a record.

    • CommentAuthormkhatib
     

    Thanks a lot Kaste...