[TYPO3-mvc] Problems in fetching database records

PIT Solutions typo3 at pitsolutions.com
Thu Feb 4 09:28:29 CET 2010



Hi ,

                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:layout name="defaultLayout" />
<f:section name="content">
<p>Welcome to the Pits Example using Extbase/FLOW3 applications.</p>
               <ul>
<f:for each="{pits}" as="pit">
<p>{pit.person_name} hello</br> </p>
<f:debug>{pits}</f:debug>
</f:for>
                       </ul>
</f:section>

Output

 hello
0 Tx_Pitlist_Domain_Model_Pit
 
1 Tx_Pitlist_Domain_Model_Pit
 
2 Tx_Pitlist_Domain_Model_Pit
 
hello

0 Tx_Pitlist_Domain_Model_Pit
 
1 Tx_Pitlist_Domain_Model_Pit
 
2 Tx_Pitlist_Domain_Model_Pit
 
hello

0 Tx_Pitlist_Domain_Model_Pit
 
1 Tx_Pitlist_Domain_Model_Pit
 
2 Tx_Pitlist_Domain_Model_Pit 



Regards,
Pitsolutions

----- Original Message ----
From: Franz Koch <typo3.RemoveForMessage at elements-net.de>
To: typo3-project-typo3v4mvc at lists.typo3.org
Sent: Wed, February 3, 2010 9:05:04 PM
Subject: Re: [TYPO3-mvc] Problems in fetching database records

Hi,
> Its defined....but no result..

have you checked if your repository is actually returning any objects? If so, are those properly assigned to the view in your controller?

Have you tried to debug your objects in fluid?

<f:debug>{yourObject}</f:debug>

-- kind regards,
Franz Koch
_______________________________________________
TYPO3-project-typo3v4mvc mailing list
TYPO3-project-typo3v4mvc at lists.typo3.org
http://lists.typo3.org/cgi-bin/mailman/listinfo/typo3-project-typo3v4mvc



More information about the TYPO3-project-typo3v4mvc mailing list