Akelos Framework v1 forum archive. This forum is no longer maintained. To report bugs please visit https://github.com/akelos/akelos/issues
    • CommentAuthoroisucf
     
    Hello I just upgraded my source tree to from the 0.8 release use the latest nightly build code. If I generate a brand new default M/V/C using the scaffold generator using the 0.8 release everything is fine...

    However, If I generate a brand new default M/V/C using the scaffold generator using the latest nightly build code the default index route does not work.

    For example if I do a "generate scaffold solo" using the 0.8 release "?ak=/solo/" will work fine.

    But if I do a "generate scaffold yoda" using the nightly build "?ak=/yoda/" will give the following error:

    Warning: Missing template \app\views\yoda\index.tpl in \lib\AkActionController.php on line 1048

    Fatal error: No tpl.php, js.tpl or delegate template found for index in \lib\AkActionView.php on line 230

    Is this a bug or intended behavior?
    • CommentAuthoroisucf
     
    Ok, After some more investigation it turns out the scaffold generated code has changed from :

    =========
    function index()
    {
    $this->renderAction('listing');
    }
    =========
    function index()
    {
    $this->performAction('listing');
    }
    =========
    The later does not work correctly. Why did this change in the scaffolding in the first place??
    • CommentAuthorKaste
     

    ->performAction() generally is the right thing here, you delegate to another action; where renderAction() actually just chooses which templete should be rendered after this action.

    but delegating to another action should also change the default-render to that action, shouldnt it? that might be a bug. ->#147

    • CommentAuthorTiBe
     
    Same error,this is a horrible horrible bug..
    •  
      CommentAuthorbermi
     
    I just replaced performAction with redirectToAction until we add unit tests for performAction.