Akelos Framework v1 forum archive. This forum is no longer maintained. To report bugs please visit https://github.com/akelos/akelos/issues
    • CommentAuthorOmeZ
     
    Are all generators suports module model or only generator of controller? I tried to make scaffold by request like "generate scaffold Mymodel Admin::Users" and I had wrong generation

    And again I want to repeat my question in "Smart rewrite" topic

    what about /admin/politics/groupolitics/.../lalalacontroller etc?

    Maybe I have solution for this:
    what about setup parameter in routes 'module'=>'admin' as array like 'module'=>array('admin','politics'...)?
    So, the same way will be used for var $module=array('admin','politics') instead var $module='admin' in my controllers, models etc. So I can make any controller inheritance if needed.

    Also is it possible to make generation of controllers etc. use multiple module inheritance like Admin::Users::Politics?
    •  
      CommentAuthorbermi
     

    The only generator that supports modules at this time is the controller generator.

    As for multiple inheritance for controllers, it seems a logic thing to have, but it is not implemented yet.

    I have no time/need right now to implement these features, but if you or other feel the need for this, it can be done. Just follow the rules at trac.akelos.org. Bad news about modules is that they lack functional tests, so increasing it's feature set over an untested base is probably a bad idea. Modules where added two weeks ago as an experimental feature.

    • CommentAuthorOmeZ
     
    ok, but I have another problem
    In case of module feature I have to tell that a lot of functionality about this doesn't work propertly. Actually, I see that there's wrong inheritance of modulename/modulepath, helpers doesn't work too. Problems in layout and other stuff. If you have no time to do this, I can do. Actually right now I have very interested to use Akelos in one project I have, 'cause situation is that I can't work on ruby and I have to use Php. So, I can try to fix some of this problems at the moment and implement module chain, but I afraid it'll make TDD unfunctional, 'cause I have no enought time to checkup this part
    • CommentAuthorOmeZ
     
    Fix of AkInflector::modulize function in attach

    This made impossible to lounch helpers and other stuff correctly from controller under module on Windows systems