⚠ In case you've missed it, we have migrated to our new website, with a brand new forum. For more details about the migration you can read our blog post for website migration. This is an archived forum. ⚠

  •     

profile picture

callback_column with a set_relation



cybersven

cybersven
  • profile picture
  • Member

Posted 03 December 2014 - 07:55 AM

Hi,

 

I've  transformed results from column into a link with callback_column, it's working but when I set a relation with the other table on this column, the link disappear.

(a little bit confusing ? here is my code)

 

This code is working

$crud->callback_column('client_ID', array($this,'_callback_client_url'));
public function _callback_client_url($value, $row)
	{
		return "<a href='clients1/read/".$row->client_ID."'>".$row->client_ID."</a>";
	}

When I add this :

$crud->set_relation('client_ID','clients','nom');

the value in the column is Ok but the link disappear...

 

thx in advance