wordpress-dispatcher
wordpress-dispatcher copied to clipboard
is there a method allow us to use 0 or more parameter in url
as following code, I use ([a-z]*)
to match 0 or more parameter, and set a default value in the callback variable, the ''/hello/' return a 404 page.
'hello/([a-z]*)' => function($request, $name="xxx"){
echo "Hello $name";
}