mirror of
https://github.com/skipperbent/simple-php-router.git
synced 2026-07-11 08:52:10 +00:00
[BUGFIX] Fixed router not loading show method
This commit is contained in:
@@ -55,7 +55,7 @@ class RouterRessource extends RouterEntry {
|
|||||||
$url = parse_url($url);
|
$url = parse_url($url);
|
||||||
$url = $url['path'];
|
$url = $url['path'];
|
||||||
|
|
||||||
if(strtolower($url) == strtolower($this->url) || stripos($url, $this->url . '/') === 0) {
|
if(strtolower($url) == strtolower($this->url) || stripos($url, $this->url) === 0) {
|
||||||
$url = rtrim($url, '/');
|
$url = rtrim($url, '/');
|
||||||
|
|
||||||
$strippedUrl = trim(substr($url, strlen($this->url)), '/');
|
$strippedUrl = trim(substr($url, strlen($this->url)), '/');
|
||||||
|
|||||||
Reference in New Issue
Block a user