Not signed in (Sign In)
Welcome Guest!
Want to take part in these discussions? If you have an account, sign in now.
If you don't have an account, apply for one now.
    • CommentAuthoroisucf
    • CommentTimeJul 3rd 2008
     
    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
    • CommentTimeJul 7th 2008
     
    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
    • CommentTimeJul 8th 2008
     

    ->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
    • CommentTimeJul 14th 2008 edited
     
    Same error,this is a horrible horrible bug..
    •  
      CommentAuthorbermi
    • CommentTimeJul 15th 2008
     
    I just replaced performAction with redirectToAction until we add unit tests for performAction.
Add your comments
    Username Password
  • Format comments as