Hi
I'm trying to get an dropdown list via set_relation but can't get it to work.
CREATE TABLE `test` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`atest` varchar(20) DEFAULT NULL,
PRIMARY KEY (`id`)
)
CREATE TABLE `btest` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`test_to_a` int(11) DEFAULT NULL,
`asdf` varchar(10) DEFAULT NULL,
PRIMARY KEY (`id`)
)
public function btest()
{
$crud = new grocery_CRUD();
$crud->set_table('text');
$crud->set_relation('test_to_a','test','id');
$output = $this->grocery_crud->render();
$this->_toutput($output);
}
What am I missing here?
Johan