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 ?
⚠ 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. ⚠
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 ?
Posted 01 August 2014 - 15:28 PM
please elaborate on what you want to happen... :)
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