Zum Inhalt springen

Problem mit der Frontenddarstellung meiner ersten Extention

Erstellt am 11. Mai 2012 · Noch keine Antworten

Tags: Frage

curi0u5 ·

Hallo,
ich bin grade dabei meine erste Extention mit Hilfe von "Zukunftsichere Typo3 Extention mit Extbase" zu schreiben.

Die Beispiel Extention ist eine Inventur Liste, es klappt alles bis auf der Frontendausgabe. Ich bekommme eine Leere Tabelle statt den eigentlichen Inhalten, wobei die Zeilenanzahl stimmt.

Bild: dl.dropbox.com/…/Bildschirmfoto 2012-05-11 um 12.07.41.png

list.html

<table border="1" cellspacing="1" cellpadding="5"> <tr>
<th>Produktbezeichnung</th>
<th>Produktbeschreibung</th>
<th>Anzahl</th> </tr>
<f:for each="{products}" as="product"> <tr>
<td>{product.name}</td>
<td>{product.description}</td>
<td>{product.quantity}</td> </tr>
</f:for>
</table>

InventoryController.php

<?php
class Tx_Inventory_Controller_InventoryController extends Tx_Extbase_MVC_Controller_ActionController {
 
	public function listAction() {
		$productRepository = t3lib_div::makeInstance('Tx_Inventory_Domain_Repository_ProductRepository');
		$products = $productRepository->findAll();
		$this->view->assign('products', $products);
	}
}
	
?>

Hoffe Ihr könnte mir helfen.

lg