⚠ 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

How to change fields values on the list and read



Evandro

Evandro
  • profile picture
  • Member

Posted 23 June 2014 - 12:27 PM

Ops, I duplicated the post, clicked two times on the button, my bad...

 

Can someone help me please ?

 

if ($crud->columns['NAME'] == '')
{
    $crud->columns['NAME'] = "Anonymous";
}

 

How can I do it the right way ?


larasmith

larasmith
  • profile picture
  • Member

Posted 01 August 2014 - 15:28 PM

please elaborate on what you want to happen...  :)


kenshicu

kenshicu
  • profile picture
  • Member

Posted 01 August 2014 - 23:09 PM

u want to know, if the name of a column is ¨empty¨?

 

check the proper use of $crud->columns()

http://www.grocerycrud.com/documentation/options_functions/columns