⚠ 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

Data insert



Abdul Wahid
  • profile picture
  • Member

Posted 26 March 2014 - 11:56 AM

Hello,

 

I want to you us grocery crud, to only insert data, I don't want to show all complete table I just want to show the fields() when the I get to that page.

 

If you want more information let me know.

 

Thanks in advance.

 

 


Amit Shah
  • profile picture
  • Member

Posted 26 March 2014 - 13:32 PM

Hi there,

 

the same can be done with u directly passing the /add to the url...

that should take you to the add form / page...

For you not to view the list page - you can use the $crud->getState() method to identify what state it is..

if the state identified is list - then just use redirect method and redirect it to whatever page / url u want to shift too

Happy GCing :)