OK, habe jetz die Zeile
[php]
$t_autos_zeigen -> assign("show_bmws", $t_bmw);
[/php]
hinter die While-Schleife angefügt, jedoch wird nun die Fehlermeldung angezeigt
Fatal error: Call to a member function on a non-object in
Der Fehler soll in der ersten Zeile der While-Schleife sein.
Im Beispiel von Kuerbis.org schaut das so aus
[php]
// now fetch the three nested blocks into three Template object instances
// Note: The block "table" isn't necessary in every case, but I want
// to demonstrate that it is possible to re-use complete blocks.
$t_table = $t->fetchBlock("table");
$t_row = $t_table->fetchBlock("row");
$t_col = $t_row->fetchBlock("col");
// build a table with 5 rows and 5 columns
for ($row = 1; $row <= 5; $row++)
{
for ($col = 1; $col <= 5; $col++)
{
// assign a string to the column placeholder object instance
$t_col->assign("cell_content","foo $row $col");
// put column object instance into row object
$t_row->assign("col",$t_col);
// clear content of column
$t_col->reset();
}
// put row into table
$t_table->assign("row",$t_row);
// clear row content
$t_row->reset();
}
// put the complete table object into the main template
$t->assign("table",$t_table);
[/php]
Bin also echt ratlos, warum das nicht bei mir funktioniert

______________________
Edit: Ach, ich habs!!! Die Zeile[php]$t_bmw = $t -> fetchBlock("show_bmws");[/php]
müsste so ausschauen
[php]$t_bmw = $t_autos_zeigen -> fetchBlock("show_bmws");[/php]
Steht ja auch oben im Beispiel

Und die Zeile
[php]$t_autos_zeigen -> assign("show_bmws", $t_bmw);[/php]gehört vor[php]$t_bmw -> reset();[/php]
Deine Variante wäre für mich leichter und auch logischer gewesen ... naja, trotzdem herzlichen Dank für Deine Hilfe!!! Werde Dich weiterempfehlen

und auf Dich wieder zurück greifen (wird bei meinem Können wahrscheinlich nich lange dauern), wenn ich mal nicht weiter weis und Du nichts dagegen hast
