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

    I use the generate to create the controller

    $./script/generate controller Book

    class BookController extends ApplicationController
    {
        Notice: Undefined variable: actions in /home/jervis/booklink/lib/utils/generators/controller/templates/controller.tpl on line 9
        Warning: Invalid argument supplied for foreach() in /home/jervis/booklink/lib/utils/generators/controller/templates/controller.tpl on line 9
    }
    

    PS: I found that the generators directory has moved to the LIB

    •  
      CommentAuthorbermi
     

    Just fixed it at current trunk. I always add the actions I want on my controller when using the controller generator. That way I also have the views created for me. Thanks for pointing out this bug.

    Its been fixed on rev.349

    ps:I found that the generators directory has moved to the LIB
    

    Yes, thats for making updates on core generators less painful. I'll provide the means for custom generators at an application level once I finish the plugin system.

    BTW, got your email :)

    • CommentAuthorjervis
     
    In actual fact, we should thank you, ^_^ for your great work.