Jump to content


Dankof

Member Since 18 Nov 2017
Offline Last Active Nov 21 2017 01:25 PM
-----

Posts I've Made

In Topic: Field with a default value and field value

18 November 2017 - 09:59 AM

Aboslutely doing it wrong. I need to use "Callback_column" for this.

This is what I did and it works like a charm:


 

    $crud->add_fields('name','email','date');
    $crud->callback_column('id',array($this,'id_callback'));
    $output = $crud->render();
    function id_callback($value, $row)
    {
    return "ID" . $row->name . $row->date;
    }



Thank you! :)