Skip to content

Commit bf392d3

Browse files
author
Ahmad Tanwir
committed
URL udah lebih clean
1 parent c729eff commit bf392d3

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

app/BlogApplication.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ class BlogApplication extends Application
88
protected function getUrlMappings()
99
{
1010
return array(
11-
'/:class/:method/:id' => array(
11+
'/:class/:method/:id.html' => array(
1212
'_namespace' => 'BlogApplication\Controller',
1313
),
1414
'/:class/:method' => array(

system/System/Request.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@ class Request
2020
public function dispatcher()
2121
{
2222
foreach ($this->urlMappings as $pattern => $options) {
23-
echo $this->toRegex($pattern) . "<br/>\n";
2423
if(preg_match($this->toRegex($pattern),$this->getUrl(),$match)){
2524
$match = array_unique($match);
2625
$url = $this->getUrl();

0 commit comments

Comments
 (0)