Akelos Framework v1 forum archive. This forum is no longer maintained. To report bugs please visit https://github.com/akelos/akelos/issues
    • CommentAuthorFlancer
     
    I am trying to implement a is_discounted field in the booklinks tutorial. I got it to show a checkbox but when displaying the value, it only shows a 1 or 0. Is there an automatic way to get Akelos to show it as True or False?
    •  
      CommentAuthorbermi
     

    Akelos get('is_discounted') will return true or false boolean which is printed by PHP like

    echo true; // 1
    echo false; //      <--- nothing here
    

    You could simply do this in your view

    echo $book->get('is_discounted') ? 'true' : 'false';
    
    • CommentAuthorFlancer
     
    Thanks Bermi.