diff options
| author | polo-pc-greta <ordipolo@gmx.fr> | 2025-05-08 12:32:34 +0200 |
|---|---|---|
| committer | polo-pc-greta <ordipolo@gmx.fr> | 2025-05-08 12:32:34 +0200 |
| commit | 28698982ff6dc67a331788c2637bce8689121769 (patch) | |
| tree | 6df30593fdcdd2ead77dd894467e5031a31cfde9 /src/model/Path.php | |
| parent | 2d8ec75f4aaf3b93fd9f6758f8dcb4f1f9f03d0c (diff) | |
| download | cms-28698982ff6dc67a331788c2637bce8689121769.tar.gz cms-28698982ff6dc67a331788c2637bce8689121769.tar.bz2 cms-28698982ff6dc67a331788c2637bce8689121769.zip | |
modif page, création d'un bloc
Diffstat (limited to 'src/model/Path.php')
| -rw-r--r-- | src/model/Path.php | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/model/Path.php b/src/model/Path.php index 11be6fe..ad44fd9 100644 --- a/src/model/Path.php +++ b/src/model/Path.php | |||
| @@ -1,5 +1,7 @@ | |||
| 1 | <?php | 1 | <?php |
| 2 | // src/controller/Path.php | 2 | // src/model/Path.php |
| 3 | // | ||
| 4 | // attention, cette classe dépend de src/model/Menu.php | ||
| 3 | 5 | ||
| 4 | declare(strict_types=1); | 6 | declare(strict_types=1); |
| 5 | 7 | ||
| @@ -14,6 +16,7 @@ class Path extends Page | |||
| 14 | { | 16 | { |
| 15 | $path_array = explode('/', CURRENT_PAGE); | 17 | $path_array = explode('/', CURRENT_PAGE); |
| 16 | try{ | 18 | try{ |
| 19 | // parcourir le menu de haut en bas pour obtenir un ou plusieurs objets Page | ||
| 17 | $this->findPage(Director::$menu_data, $path_array); // remplit $this->current_page | 20 | $this->findPage(Director::$menu_data, $path_array); // remplit $this->current_page |
| 18 | } | 21 | } |
| 19 | catch(Exception $e){} | 22 | catch(Exception $e){} |
