Skip to content
/ Slim Public
forked from lherich/Slim

Fork of the original micro framework Slim with minimal modifications.

License

Notifications You must be signed in to change notification settings

extra3/Slim

 
 

Repository files navigation

#Slim with minimal modifications

Fork of the original micro framework Slim with minimal modifications.

###Modification ./Route.php@462

-        $return = call_user_func_array($this->getCallable(), array_values($this->getParams()));
+        $return = call_user_func_array($this->getCallable(), array(0=>$this->getParams()));

##Example This modification will return an associative array.

###index.php

$app->get('/hello/:myFirstIndex/:mySecondIndex', function($params) {
  print_r($params);
});

###Request

GET /hello/foo/bar HTTP/1.1

###Output

Array
(
    [myFirstIndex] => foo
    [mySecondIndex] => bar
)

About

Fork of the original micro framework Slim with minimal modifications.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • PHP 100.0%