[TYPO3-mvc] Problems in fetching database records
Franz Koch
typo3.RemoveForMessage at elements-net.de
Thu Feb 4 11:08:02 CET 2010
Hi "unknown",
> The below html(index.html) is used in FE to show content. Please let me know if you need more clarifications as I'm using extbase/fluid for first time.
...
> <f:for each="{pits}" as="pit">
> <p>{pit.person_name} hello</br> </p>
> <f:debug>{pits}</f:debug>
> </f:for>
...
> Output
>
> hello
> 0 Tx_Pitlist_Domain_Model_Pit
> 1 Tx_Pitlist_Domain_Model_Pit
> 2 Tx_Pitlist_Domain_Model_Pit
Ok, so the objects are available. That means that your Pit model either
has not "getPerson_Name()" method or you simply use the wrong attribute
in your template (which I assume).
Try {pit.personName} in your template.
--
kind regards,
Franz Koch
More information about the TYPO3-project-typo3v4mvc
mailing list