Akelos Framework v1 forum archive. This forum is no longer maintained. To report bugs please visit https://github.com/akelos/akelos/issues
    • CommentAuthorVBharathi
     
    Hi
    how to get error logs in akelos.i was defined ''define('AK_EVENT_LOG',true)" in config/config.php
    • CommentAuthorThijs
     

    http://forum.akelos.org/discussion/268/

    • CommentAuthorVBharathi
     
    Hi,
    I was defined:

    define('AK_LOG_EVENTS', true);

    in config/config.php.

    C:\Projects\akelos1>php tail -f log/development.log

    After executing i got this error

    Could not open input file: tail
    How could i get development.log?
    • CommentAuthorThijs
     

    I don't use windows, so I don't know if

    C:\Projects\akelos1>php tail -f log/development.log
    

    .. is a correct terminal command. (I suspect not)

    But you could look if there is a file in the /YOURAPPLICATION/log/ directory?

    •  
      CommentAuthorbermi
     

    On windows you might find useful tail.exe, or WinTail, never tried them though.

    • CommentAuthorVBharathi
     
    Thank Q Bermi and Thijs .

    This statement "C:\Projects\akelos1>php tail -f log/development.log" was working.
    The tail is working in windows
    But one problem has came, after adding the below statement

    $post = $this->post->find(@$this->params['id'] , array( 'include' => 'comments') ); in show function at blog controller.php

    i am getting these Notice and warnings at http://localhost/post/show/1/

    Notice: Unknown column '_comments.post_id' in 'on clause' in C:\Projects\akelos1\lib\AkActiveRecord\AkAssociatedActiveRecord.php on line 368

    Warning: Cannot modify header information - headers already sent by (output started at C:\Projects\akelos1\lib\AkActiveRecord\AkAssociatedActiveRecord.php:368) in C:\Projects\akelos1\lib\AkResponse.php on line 109

    Warning: Cannot modify header information - headers already sent by (output started at C:\Projects\akelos1\lib\AkActiveRecord\AkAssociatedActiveRecord.php:368) in C:\Projects\akelos1\lib\AkResponse.php on line 109

    Warning: Cannot modify header information - headers already sent by (output started at C:\Projects\akelos1\lib\AkActiveRecord\AkAssociatedActiveRecord.php:368) in C:\Projects\akelos1\lib\AkResponse.php on line 114

    Why am i getting this warnings? How could i remove this?
    • CommentAuthorThijs
     

    Sorry, my example (in the other thread) was wrong, it should be:

    $post = $this->post->find($this->params['id'] , array( 'include' => 'comment') );
    

    not plural but singular

    • CommentAuthorVBharathi
     
    Hi,
    how to do debug Aeklos programs.
    • CommentAuthorsuthern
     

    I've found that putting $this->CONTROLLER_NAME->dbug(); inside your controller functions is useful.

    • CommentAuthorVBharathi
     
    Hi,
    I am using radio buttons in templates:

    for example:
    <?php echo $form_tag_helper->start_form_tag(array('action'=>'check')) ?>
    <input type="radio" id="sample_1 " name="sample[1]" value="1" >
    <input type="radio" id="sample_2 " name="sample[2]" value="2" >

    <?php echo $sample_helper->ok() ?>

    <?php echo $form_tag_helper->end_form_tag() ?>
    After press "ok",
    I want to store this radio button values into a variable at controller.
    how can i access ?
    • CommentAuthorThijs
     

    since it are radiobuttons (and not checkboxes) they can have the same name, not?

    <input type="radio" id="sample" name="sample" value="1" /> 
    <input type="radio" id="sample" name="sample" value="2" />
    

    And the variable in the controller would be (if I'm not mistaken):

    $this->sample
    

    But aren't you using a model? Because you could use:

    <%= radio_button 'model', 'sample', '1' %>
    <%= radio_button 'model', 'sample', '2' %>
    
    • CommentAuthorThijs
     

    BTW, VBharathi, could you please stop posting new questions in existing threads? This thread was on 'Error logs'.. and now it's about radiobuttons..

    There's a 'Start a new discussion' link on the top left in case you might have missed it.