| Line 10... |
Line 10... |
| 10 |
* @author Aurélien PERONNET <aurelien@tela-botanica.org>
|
10 |
* @author Aurélien PERONNET <aurelien@tela-botanica.org>
|
| 11 |
* @author Jean-Pascal MILCENT <jpm@tela-botanica.org>
|
11 |
* @author Jean-Pascal MILCENT <jpm@tela-botanica.org>
|
| 12 |
* @copyright Copyright (c) 2009, Tela Botanica (accueil@tela-botanica.org)
|
12 |
* @copyright Copyright (c) 2009, Tela Botanica (accueil@tela-botanica.org)
|
| 13 |
* @license http://www.cecill.info/licences/Licence_CeCILL_V2-fr.txt Licence CECILL
|
13 |
* @license http://www.cecill.info/licences/Licence_CeCILL_V2-fr.txt Licence CECILL
|
| 14 |
* @license http://www.gnu.org/licenses/gpl.html Licence GNU-GPL
|
14 |
* @license http://www.gnu.org/licenses/gpl.html Licence GNU-GPL
|
| 15 |
* @version $Id: Controleur.php 485 2014-08-08 08:32:24Z mathias $
|
15 |
* @version $Id: Controleur.php 486 2014-08-08 08:36:15Z mathias $
|
| 16 |
* @link /doc/framework/
|
16 |
* @link /doc/framework/
|
| 17 |
*
|
17 |
*
|
| 18 |
*/
|
18 |
*/
|
| 19 |
abstract class Controleur {
|
19 |
abstract class Controleur {
|
| 20 |
/** Variable statique indiquant que les tableaux _GET et _POST ont déjà été encodé au format de l'appli. */
|
20 |
/** Variable statique indiquant que les tableaux _GET et _POST ont déjà été encodé au format de l'appli. */
|
| Line 129... |
Line 129... |
| 129 |
* @return boolean false si la vue n'existe pas, sinon la chaine résultat.
|
129 |
* @return boolean false si la vue n'existe pas, sinon la chaine résultat.
|
| 130 |
*/
|
130 |
*/
|
| 131 |
protected function getVue($nom_squelette, $donnees = array()) {
|
131 |
protected function getVue($nom_squelette, $donnees = array()) {
|
| 132 |
$donnees = $this->preTraiterDonnees($donnees);
|
132 |
$donnees = $this->preTraiterDonnees($donnees);
|
| 133 |
$chemin_squelette = $this->base_chemin_squelette.$nom_squelette.'.tpl.html';
|
133 |
$chemin_squelette = $this->base_chemin_squelette.$nom_squelette.'.tpl.html';
|
| 134 |
echo "Chesqueu 1 : " . $chemin_squelette . "<br/>";
|
- |
|
| 135 |
if (file_exists($chemin_squelette) === false) {
|
134 |
if (file_exists($chemin_squelette) === false) {
|
| 136 |
$chemin_squelette = $this->base_chemin_squelette.$nom_squelette;
|
135 |
$chemin_squelette = $this->base_chemin_squelette.$nom_squelette;
|
| 137 |
echo "Chesqueu 2 : " . $chemin_squelette . "<br/>";
|
- |
|
| 138 |
}
|
136 |
}
|
| 139 |
$sortie = SquelettePhp::analyser($chemin_squelette, $donnees);
|
137 |
$sortie = SquelettePhp::analyser($chemin_squelette, $donnees);
|
| Line 140... |
Line 138... |
| 140 |
|
138 |
|
| 141 |
return $sortie;
|
139 |
return $sortie;
|