Created
December 23, 2013 15:48
-
-
Save fatorx/8099313 to your computer and use it in GitHub Desktop.
ZF2 - Pegar um campo de um elemento Collection na view
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$formCampos = $form->get('fieldset_princpal'); | |
$collectionElement = $formCampos->get('collection_element'); | |
?> | |
<?php $campoTipo = $collectionElement->getFieldsets()[0]->getElements()['nomeCampo']; ?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment