please can some one help me this function $crud->required_fields('city'); didn't work in the exemple "Callback_add_field example .
⚠ 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 15 May 2013 - 10:23 AM
please can some one help me this function $crud->required_fields('city'); didn't work in the exemple "Callback_add_field example .
Posted 15 May 2013 - 11:27 AM
Hello and welcome to the forums.
Can you please paste your code here?
Posted 15 May 2013 - 11:41 AM
thank's Mr;
the Code:
Posted 15 May 2013 - 12:26 PM
Posted 15 May 2013 - 13:03 PM
I'm using Grocery CRUD v.1.3.3 (latest version)
Posted 15 May 2013 - 20:58 PM
This is strange! Does it save and edit correctly at the database?
Posted 16 May 2013 - 08:08 AM
are you using xampp ? what version ?
Posted 31 August 2013 - 17:02 PM
I think you have to use
$crud->fields('field1', 'city');
then
$crud->required_fields('city');
i am using it and it works fine.