⚠ 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

Not all of field of table



samsun

samsun
  • profile picture
  • Member

Posted 30 May 2012 - 01:25 AM

Dear All,

I am stduying to use grocery for my application, i have a question.
How so not all of the fields in the database appears in the form?
Example: table office have field : name, address, phone, status.
and i want in form just name, address, an phone.

Regard,
Samsun

web-johnny

web-johnny
  • profile picture
  • Administrator
  • 1,166 posts

Posted 07 October 2012 - 08:51 AM

Hello samsun and welcome to the forum, in your case you will have something like that:

$crud->fields('name','address','phone');

For more take a look at: http://www.grocerycr...ethods_2nd_part