Akelos Framework v1 forum archive. This forum is no longer maintained. To report bugs please visit https://github.com/akelos/akelos/issues
    • CommentAuthoralake
     
    How can I echo a comment to a page from a controller? I have no problem with using a command other than "echo", nor do I have a problem with sending the comment to a log or some other kind of file. I'd just like to be able to confirm that expected values exist and that I am going where I expect to go. Thanx.
    • CommentAuthorKaste
     

    brutal way is var_dump(). sure it breaks the layout.

    You can assign the 'comment' to an instance variable

    $this->Introspekt[] = 'Whats this';
    

    and render it in your view like usual.

    <? foreach ($Introspekt as $key=>$item) : ?>
        {key}: {item}
    <? endforeach; ?>
    

    You get the Logger with

    Ak::getLogger()->message();
    

    I'd just like to be able to confirm that expected values exist and that I am going where I expect to go.

    => I would do (unit) tests.