Établissement d'un framework
Bonjour,
Je suis en train de rédiger un framework qui regrouprouperait plein d'utilitaire.
J'ai commencé il n'y a pas longtemps.
J'ai donc commencer par une classe (objet, PHP 5+ recommandé) qui envoie des flux html.
Cependant, je ne comprend pas trop.
J'ai un petit script qui utilise l'ensemble des classes que j'ai pour l'instant écrite et qui à pour objectif d'envoyer des flux HTML. Donc ce script me renvoie ceci
Code:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57
| <?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html
PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="fr" lang="fr">
<head>
<title>Ma pâge de test</title>
</head>
<body><table border="1">
<thead>
<tr>
<th/>
<th>Lundi</th>
<th>Mardi</th>
<th>Mercredi</th>
<th>Jeudi</th>
<th>Vendredi</th>
<th>Samedi</th>
<th>Dimanche</th>
</tr>
</thead>
<tfoot>legend</tfoot>
<tbody>
<tr>ligne</tr>
<tr>ligne</tr>
<tr>ligne</tr>
<tr>ligne</tr>
<tr>ligne</tr>
<tr>ligne</tr>
<tr>ligne</tr>
<tr>ligne</tr>
<tr>ligne</tr>
<tr>ligne</tr>
<tr>ligne</tr>
<tr>ligne</tr>
<tr>ligne</tr>
<tr>ligne</tr>
<tr>ligne</tr>
<tr>ligne</tr>
<tr>ligne</tr>
<tr>ligne</tr>
<tr>ligne</tr>
<tr>ligne</tr>
<tr>ligne</tr>
<tr>ligne</tr>
<tr>ligne</tr>
<tr>ligne</tr>
</tbody>
</table>
</body>
</html> |
Si je mes cela dans un fichier, que j'affiche via un navigateur, tous les mots lignes
s'affiche bien à l'intérieur du tableau
sinon non, je sais pas pourquoi.
Pouriez vous me dire qu'est ce qui peut poser le faite que les <tr> s'affiche en dehors de la <table> ?