[TYPO3-mvc] array or Tx_Extbase_Persistence_ObjectStorage ?

Braulio J. Solano-Rojas braulio at solsoft.biz
Tue Oct 26 21:48:17 CEST 2010


El 26/10/2010 12:41 p.m., Braulio J. Solano-Rojas escribió:
> [Snip]
>
> I have just one question, is it better for templates to declare
> properties as arrays?
>
>[Snip]

Well, actually I found this:

http://lists.typo3.org/pipermail/typo3-project-typo3v4mvc/2010-May/004707.html

Then I just did this:

/**
  * activities
  * @var 
Tx_Extbase_Persistence_ObjectStorage<Tx_FourelementsReservations_Domain_Model_Activity>
  */
protected $activities = array();

In the form I have this:

<f:for each="{activities}" as="activity">
	<label><f:form.checkbox property="activities" value="{activity}" /> 
{activity.description}</label>
</f:for>

It works fine...  :-)

Bests,

B.


More information about the TYPO3-project-typo3v4mvc mailing list