summaryrefslogtreecommitdiff
path: root/src/model/Path.php
diff options
context:
space:
mode:
Diffstat (limited to 'src/model/Path.php')
-rw-r--r--src/model/Path.php5
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
4declare(strict_types=1); 6declare(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){}