⚠ In case you've missed it we are migrating to our new website, with a brand new forum. For more details about the migration you can read our blog post for website migration. Very soon this forum will be read-only and archived. ⚠

Adding form instead of a grid

form grid

  • Please log in to reply
1 reply to this topic

#1 maksik



  • Members
  • Pip
  • 1 posts

Posted 30 October 2013 - 07:12 AM



Could you help me please. I need place adding form instead of datagrid on the first screen, but didn't found how to do that.


The only way to do it i see this one:

public function profile($page=null) {
    if ($page==null) redirect (APP_URL.'profile/add');
    else ...

#2 Amit Shah

Amit Shah

    grocery CRUD Master

  • Advanced Member
  • PipPipPip
  • 1,192 posts

Posted 30 October 2013 - 10:36 PM

Hi maksik


Welcome the GC Forums

Well there truely are ways for that 1 - What you need to do is use

if($crud->getState() == 'list') {

But beware of how you play around - If you dont want list totally .. then u should disable the list by $crud->unset_list();


Happy GCing

Also tagged with one or more of these keywords: form, grid

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users