Skip to content

Commit

Permalink
fixing minor bugs
Browse files Browse the repository at this point in the history
  • Loading branch information
ipranjal committed May 14, 2018
1 parent 659fc81 commit 688fc60
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/RouterEngine.php
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ public function __construct(Request $request, RouteCollection $collection) {
*/
public function route() {
// Get URL and request method.
$this->request_method = $this->request->getMethod();
$this->request_method = strtolower($this->request->getMethod());
$this->path_info = $this->request->getPathInfo();

//Break URL into segments
Expand Down Expand Up @@ -110,11 +110,11 @@ public function route() {
*/
protected function error($message) {
$controllers = $this->collection->getControllers();
$list="";
$list="";
foreach($controllers as $name => $class){
$list = $list.''.$name.':'.$class;
}
throw new NotFoundException('Oops its an 404 error! :'.$msg.' List of currently registerd controllers:'.$list);
throw new NotFoundException('Oops its an 404 error! :'.$message.' List of currently registerd controllers:'.$list);
}

//---------------------------------------------------------------//
Expand Down

0 comments on commit 688fc60

Please sign in to comment.