$config_chemin_modele en plus de $config_chemin_base.

This commit is contained in:
Georges Dupéron 2010-07-02 18:26:46 +02:00
parent 35d211a0a3
commit a8763e5c2f
3 changed files with 6 additions and 3 deletions

View File

@ -1,6 +1,9 @@
<?php
require_once("util.php");
$config_url_base = "http://127.0.0.1/2010-moteur-site-simple/";
$config_chemin_base = dirname($_SERVER[SCRIPT_FILENAME]);
$config_chemin_modele = concaténer_chemin_fs($config_chemin_base, "/modele");
?>

View File

@ -59,8 +59,8 @@ class Page {
// Renvoie le chemin de la page dans le système de fichiers
private function chemin_fs() {
global $config_chemin_base;
return concaténer_chemin_fs($config_chemin_base, $this->chemin->get());
global $config_chemin_modele;
return concaténer_chemin_fs($config_chemin_modele, $this->chemin->get());
}
public function liste_enfants() {

View File

@ -6,7 +6,7 @@ require_once("types/galerie-periode.php");
require_once("types/galerie-evenement.php");
require_once("types/galerie-photo.php");
$p = Page::_new("/modele/galerie");
$p = Page::_new("/galerie");
print_r($p->vue());