Let's say, I have
$app->get('/hello/:name', function($name){
echo 'Hello' . $name;
});
Is it possible to have default value for $name
so if I just go to
http://myurl.com/hello
*without second segment, it will out put
Hello default
If yes, How to do that ? How to assign default value to route parameter in Slim ?
I know there is Optional Route Parameter, but I'm not sure to use it since it's still experimental.
Thanks.