Bonjour

j'ai souvent vu cette directive $this->escape( dans la view


exemple dans ce tuto.

index.phtml
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
 
 
<?php
 // echo 'Mes premiers pas vers Zend Framework' ; 
 ?>
<table>
<tr>
<th>Nom</th>
<th>Age</th>
</tr>
<?php foreach ($this->user as $key => $val): ?>
<tr>
<td><?php echo $this->escape($val['nom']) ?></td>
<td><?php echo $this->escape($val['age']) ?></td>
</tr>
<?php endforeach; ?>
</table>

Cependant je n'ai aucune idée à quoi ca doit servir.
est indispensable ?


Merci d'avance