Jump to content


titu

Member Since 06 Dec 2013
Offline Last Active Mar 06 2017 06:25 PM
-----

#13233 crud render for examples tables but not my tables

Posted titu on 14 October 2015 - 06:39 PM

does your table have a primary key? If it doesn't  it could be the reason.




#12424 Problem with array and field_type "enum"

Posted titu on 30 April 2015 - 04:45 PM

Well this is more of a PHP knowledge issue.

 

instead of concatinating to a string try adding the option to an array:

 foreach($query->result() AS $row) {
                $result[] = $row->nav_name;
            }

and delete this line:

 $result= substr($result, 0, -1);

and on the field type:

$this->grocery_crud->field_type('nav_parent','enum',$arrayvalues);