Jump to content


Data insert

table insert data help needed

  • Please log in to reply
1 reply to this topic

#1 Abdul Wahid

Abdul Wahid

    Newbie

  • Members
  • Pip
  • 2 posts

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.

 

 



#2 Amit Shah

Amit Shah

    grocery CRUD Master

  • Advanced Member
  • PipPipPip
  • 1,192 posts
  • LocationMumbai, India

Posted 26 March 2014 - 01: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 :)







Also tagged with one or more of these keywords: table, insert data, help needed

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users