Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
bakeiro committed Dec 13, 2020
1 parent 18c1334 commit d14ba5d
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 6 deletions.
1 change: 0 additions & 1 deletion src/common/controller/commonController.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,4 +24,3 @@ public function pageNotFound(): void
$this->output->load("common/pageNotFound", $data);
}
}
// src\common\controller\CommonController.php
2 changes: 1 addition & 1 deletion src/welcome/controller/welcomeController.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,6 @@ public function index(): void

$this->output->addJs("products");

$this->output->load("welcome/welcomeView");
$this->output->load("welcome/welcome");
}
}
3 changes: 2 additions & 1 deletion src/welcome/view/welcomeView.php
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
welcome view
<h3>Welcome Light-PHP 2.0</h3>
<p>Your application it's ready, <a target="_blank" href="https://bakeiro.github.io/Light-PHP-documentation/">Documentation</a></p>
2 changes: 1 addition & 1 deletion system/engine/Router.php
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ private function getPathFromSeoUrl(string $url_action): string
{
$routes = include "system/config/routes.php";

if (in_array($url_action, $routes)) {
if (in_array($url_action, array_keys($routes))) {
return $routes[$url_action];
} else {
return "common/common/pageNotFound";
Expand Down
4 changes: 2 additions & 2 deletions system/library/Console.php
Original file line number Diff line number Diff line change
Expand Up @@ -69,11 +69,11 @@ public function addDebugInfo($debug_message): void
/**
* Adds a message to display into the debug console
*
* @param string $message Message to add into the debug console
* @param $message Message to add into the debug console
* @param string $type Type of the message added
*
*/
public function addStackTrace(string $message, string $type): void
public function addStackTrace($message, string $type): void
{
Console::$console_execution_traces[] = array("message" => $message, "type" => $type);
}
Expand Down

0 comments on commit d14ba5d

Please sign in to comment.