I have a simple scenario where I need to pass a default “fn” parameter/value when none is passed. My rules are as below:
'rules' => [
[
'pattern' => 'post/index',
'route' => 'post/index',
'defaults' => ['fn' => 'a'],
]
],
When I call /post/index
my expectation is that /post/index?fn=a
is passed. The above gives an error: Missing required parameters: fn