⚠ 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

Read view must show options doesn´t values



fbn
  • profile picture
  • Member

Posted 09 April 2015 - 15:46 PM

Hi,

 

In my controller i have this:

$crud->field_type('papel', 'dropdown', array('1' => 'Administrador', '2' => 'Operador'));
$crud->field_type('estado', 'dropdown', array('1' => 'Ativado', '0' => 'Desativado'));

In the read view papel field must be Administrador ou Operador and estado field must be Ativado or Desativado.

 

Any suggestions would be great!

Sorry for my english.

 

 

 


fbn
  • profile picture
  • Member

Posted 09 April 2015 - 22:50 PM

Somebody can help??


Amit Shah
  • profile picture
  • Member

Posted 12 April 2015 - 04:47 AM

Welll this is not set relation .. this is a field type

so it might not have rendered. As for the read to get it in that case - i will recommend a callback - that should do it


fbn
  • profile picture
  • Member

Posted 17 April 2015 - 09:06 AM

Thanks Amit,

 

Is there any callback for read views in Grocery Crud?