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.
    • CommentAuthorVBharathi
    • CommentTimeMar 11th 2008
     
    Hi
    how to get error logs in akelos.i was defined ''define('AK_EVENT_LOG',true)" in config/config.php
    • CommentAuthorThijs
    • CommentTimeMar 11th 2008
     

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

    • CommentAuthorVBharathi
    • CommentTimeMar 17th 2008 edited
     
    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
    • CommentTimeMar 17th 2008 edited
     

    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
    • CommentTimeMar 17th 2008
     

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

    • CommentAuthorVBharathi
    • CommentTimeMar 18th 2008 edited
     
    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
    • CommentTimeMar 18th 2008
     

    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
    • CommentTimeMar 29th 2008 edited
     
    Hi,
    how to do debug Aeklos programs.
    • CommentAuthorsuthern
    • CommentTimeMar 31st 2008
     

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

    • CommentAuthorVBharathi
    • CommentTimeApr 2nd 2008 edited
     
    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
    • CommentTimeApr 3rd 2008 edited
     

    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
    • CommentTimeApr 3rd 2008 edited
     

    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.

Add your comments
    Username Password
  • Format comments as