Voilà le message que je reçois, alors que je me trouve bien dans un objet, je ne comprend pas ce que j'ai fais de travers, est-ce que quelqu'un y voit plus clair ?
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24 class farms { public $html; function display_farmsTable($rows){ //echo $this->html; $this->html["farmlist"] .= "<table>\n"; //header $this->html["farmlist"] .= "\t<tr>\n"; $this->html["farmlist"] .= "\t\t<td>Nom</td>\n"; $this->html["farmlist"] .= "\t\t<td>CP</td>\n"; $this->html["farmlist"] .= "\t\t<td>Ville</td>\n"; $this->html["farmlist"] .= "\t</tr>\n"; foreach($rows as $row){ $this->html["farmlist"] .= "\t<tr>\n"; //$this->html["farmlist"] .= "\t\t<td>$field</td>\n"; $this->html["farmlist"] .= "\t\t<td><a href='index.php?option=com_farms&id={$row["id"]}&task=displayfarm'>{$row ["name"]}</a></td>\n"; $this->html["farmlist"] .= "\t\t<td>{$row ["zipcode"]}</td>\n"; $this->html["farmlist"] .= "\t\t<td>{$row ["city"]}</td>\n"; $this->html["farmlist"] .= "\t</tr>\n"; } $this->html["farmlist"] .= "</table>\n"; }
Partager