@@ -22,7 +22,7 @@ discard block |
||
| 22 | 22 | public function getPage() { |
| 23 | 23 | return $this->page; |
| 24 | 24 | } |
| 25 | - public function getModule(){ |
|
| 25 | + public function getModule() { |
|
| 26 | 26 | return $this->module; |
| 27 | 27 | } |
| 28 | 28 | public function getController() { |
@@ -90,7 +90,7 @@ discard block |
||
| 90 | 90 | } |
| 91 | 91 | |
| 92 | 92 | echo $this->page; |
| 93 | - echo $this->parametre ; |
|
| 93 | + echo $this->parametre; |
|
| 94 | 94 | |
| 95 | 95 | $this->setActionPage(); |
| 96 | 96 | |
@@ -62,8 +62,7 @@ discard block |
||
| 62 | 62 | if (in_array($explode[$i], $this->getAllModules())) { |
| 63 | 63 | $this->module = $explode[$i]; |
| 64 | 64 | $debut_url = $explode[$i]; |
| 65 | - } |
|
| 66 | - else if ($i >= 1) { |
|
| 65 | + } else if ($i >= 1) { |
|
| 67 | 66 | $centre_url[] = $explode[$i]; |
| 68 | 67 | $this->page[] = $explode[$i]; |
| 69 | 68 | } |
@@ -77,8 +76,7 @@ discard block |
||
| 77 | 76 | |
| 78 | 77 | if (!isset($centre_url) || ($centre_url == "")) { |
| 79 | 78 | $this->page = "index"; |
| 80 | - } |
|
| 81 | - else { |
|
| 79 | + } else { |
|
| 82 | 80 | $file = ROOT."modules/".$debut_url."/app/views/".$this->page; |
| 83 | 81 | |
| 84 | 82 | if (!file_exists($file)) { |