Jump to content


Flashy

Member Since 27 Jan 2016
Offline Last Active Feb 04 2016 06:34 AM
-----

Posts I've Made

In Topic: How to use set the select dropdown value field other that the primary value

28 January 2016 - 05:25 AM

 

Worked it out incase anybody else needs to know:

 

Set the primary key of the table before calling set_relations...

 

$crud->set_primary_key('value','statuses');
$crud->set_relation('show_in_navi','statuses','title', array('group' => 'yn'));

 

So it seems that when you do this, it doubles up the data being returned, so I still need an answer to this...


In Topic: How to use set the select dropdown value field other that the primary value

28 January 2016 - 05:11 AM

Worked it out incase anybody else needs to know:

 

Set the primary key of the table before calling set_relations...

 

$crud->set_primary_key('value','statuses');
$crud->set_relation('show_in_navi','statuses','title', array('group' => 'yn'));