Jump to content


Adding form instead of a grid

form grid

  • Please log in to reply
1 reply to this topic

#1 maksik

maksik

    Newbie

  • Members
  • Pip
  • 1 posts

Posted 30 October 2013 - 07:12 AM

Hello!

 

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
  • LocationMumbai, India

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') {
       (APP_URL.'profile/add')
}

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