Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DisplayGroups #153

Open
imonteiro opened this issue Jan 18, 2013 · 0 comments
Open

DisplayGroups #153

imonteiro opened this issue Jan 18, 2013 · 0 comments

Comments

@imonteiro
Copy link
Member

Original author: alessand...@gmail.com (October 11, 2011 19:21:50)

Estou usando assim o addDisplayGroup :

    $grid->getForm(1)->addDisplayGroup(array('com_fiv_mo',                                
                                 'com_fiv_bi',                              
                                 'com_fiv_bl',                              
                                 'com_fiv_bx',                              
                                 'com_fiv_be',                              
                                 'com_fiv_d8'),'transferencia',array('legend' =>'grupo1'));

    $grid->getForm(1)->getDisplayGroup('transferencia')->setDecorators($form->getSubformElementDecorator());

E recebo o seguinte erro :

Message: Method getType does not exist

Stack trace:
#0 C:\xampp\htdocs\snp\library\Zend\Form\Decorator\ViewHelper.php(92): Zend_Form_DisplayGroup->__call('getType', Array)
#1 C:\xampp\htdocs\snp\library\Zend\Form\Decorator\ViewHelper.php(92): Zend_Form_DisplayGroup->getType()
#2 C:\xampp\htdocs\snp\library\Zend\Form\Decorator\ViewHelper.php(233): Zend_Form_Decorator_ViewHelper->getHelper()
#3 C:\xampp\htdocs\snp\library\Zend\Form\DisplayGroup.php(878): Zend_Form_Decorator_ViewHelper->render('')
#4 C:\xampp\htdocs\snp\library\Zend\Form\Decorator\FormElements.php(101): Zend_Form_DisplayGroup->render()
#5 C:\xampp\htdocs\snp\library\Zend\Form.php(2887): Zend_Form_Decorator_FormElements->render('')
#6 C:\xampp\htdocs\snp\library\Zend\Form\Decorator\FormElements.php(101): Zend_Form->render()
#7 C:\xampp\htdocs\snp\library\Zend\Form.php(2887): Zend_Form_Decorator_FormElements->render('')
#8 C:\xampp\htdocs\snp\library\Bvb\Grid\Deploy\Table.php(1751): Zend_Form->render()
#9 C:\xampp\htdocs\snp\application\modules\veterinario\controllers\fivController.php(281): Bvb_Grid_Deploy_Table->deploy()
#10 C:\xampp\htdocs\snp\library\Zend\Controller\Action.php(513): Veterinario_FivController->comfivAction()
#11 C:\xampp\htdocs\snp\library\Zend\Controller\Dispatcher\Standard.php(295): Zend_Controller_Action->dispatch('comfivAction')
#12 C:\xampp\htdocs\snp\library\Zend\Controller\Front.php(954): Zend_Controller_Dispatcher_Standard->dispatch(Object(Zend_Controller_Request_Http), Object(Zend_Controller_Response_Http))
#13 C:\xampp\htdocs\snp\library\Zend\Application\Bootstrap\Bootstrap.php(97): Zend_Controller_Front->dispatch()
#14 C:\xampp\htdocs\snp\library\Zend\Application.php(366): Zend_Application_Bootstrap_Bootstrap->run()
#15 C:\xampp\htdocs\snp\public\index.php(98): Zend_Application->run()
#16 {main}

É possível trabalhar com DisplayGroups ?

Obrigado

Original issue: http://code.google.com/p/zfdatagrid/issues/detail?id=776

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant