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

    I don't know if this is a bug or I'm doing something wrong.

    Anyway.

    I have a simple method in my controller "Foo" called "showFoo()"

    I want do display a template that is at thie path /$APP_ROOT/app/view/my_random_dir/my_custom_template.tpl

    If I try to use render in my method in this way

    $this->render("my_random_dir/my_custom_template.tpl");

    the template is shown but without layout !!!!

    Is render the correct function to call ? How do I tell render to user the layout specified in the controller ?

    Thanks

    -- Simone

    • CommentAuthorpweil
     

    This may be part of the same bug mentioned in this recent thread.

    • CommentAuthorhpatoio
     

    I've also tried with

    $this->renderWithLayout('my_random_dir/my_custom_template', '200', 1 );

    but no luck :(

    I saw the bug you talked about, but I don't think the problem is the same .

    I didn't install the admin plugin, I have a normal Akelos project but still I can't show a custom view for a specific controller/method.

    -- Simone

    • CommentAuthorpweil
     
    Although I did cite the admin plugin in the ticket, I'm not certain that it is required for this bug. I seem to recall seeing the same problem in circumstances similar to yours. Perhaps Bermi or other can confirm this.