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

    Ok, this is driving me nuts. This line causes "..FATAL ERROR: Call to a member function get() on a non object...":

    <?php echo $form_helper->hidden_field('parts_orders',$i.'__TxnLineID',array('value' => @$parts_order['TxnLineID'] )); ?>

    While this one works fine:

      <?php echo $form_helper->hidden_field('parts_orders',$i.'__location',array('value' => $parts_order['location'] )); ?>

    Both fields exist.. hmm... But TxnLineID does not exist in array parts_orders. Shouldn't the @ symbol make php ignore the absence of a value in a variable? I'll keep plugging away.

    • CommentAuthorsuthern

    FYI: I solved this in my case by doing this:

      <?php if(isset($parts_orders['TxnLineID'])) { ?>
        <?php echo $form_helper->hidden_field('parts_orders',$i.'__TxnLineID',array('value' => $parts_order['TxnLineID'] )); ?>