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

    In my post (http://forum.akelos.org/discussion/514) I noted there was a bug with the Admin_Scaffold Create/Update code. I have created a Refactored Admin_Scaffold template generator. I'm posting it here so that it may get added to the regular source tree. I do not have SVN or an account so I am posting the code here.

    -Daniel
    • CommentAuthoroisucf
     
    controller.php code
    • CommentAuthoroisucf
     
    • CommentAuthoroisucf
     
    Any takers...
    •  
      CommentAuthorspytheman
     
    Hi, I've just used your files to fix a problem with my admin_scaffolding generator plugin.
    Thank you very much.
    • CommentAuthorKaste
     

    can you take this to TRAC?

    • CommentAuthoroisucf
     
    Hello List,

    Found out that there is a bug with the CamelCased Admin_ControllerNames that my code posted above does not address...

    If my AdminController is named "Admin_hanSoloController" everything works fine, but if my AdminController is named "Admin_HanSoloController" calls to $this->HanSolo->find(@$this->params['id']) don't work right. I'm thinking it is because "Admin_ControllerNames" have an underscore and normally controllers are only CamelCased. I'm trying to find the bug.

    I'm doing: "AkInflector::underscore" instead of "AkInflector::camelize" when building the class stament: "class Admin_hanSoloController extends AdminController" right now as a work around and doing hand edits of the generated code.
    • CommentAuthoroisucf
     
    I'll post this to track as soon as I find out how to recover my lost password for it.
    • CommentAuthoroisucf
     
    If my AdminController is named "Admin_hanSoloController" everything works fine, but if my AdminController is named "Admin_HanSoloController" calls to $this->HanSolo->find(@$this->params['id']) does not return false like it should. Just a null object.