In cook book of cakephp 3. It is given to build url using
echo $this->Url->build([
"controller" => "Posts",
"action" => "view",
"foo" => "bar"
]);
which will output as
/posts/view/foo:bar
How to access the foo:bar
in action and save in a variable $foo
?