I am working with this addon code:
You see the Dispatcher, the Controller give index
and show
dispatcher.
I have a question:
the URL is like: {$modulelink}&action=show
but how can I pass params in this type dispatcher? such as {$modulelink}&action=show&age=25&gender=1
, then I in show
can get the params age=25
and gender=1
.
You can just define them inside this function:
$age = isset($_REQUEST['age']) ? $_REQUEST['age'] : '';
Extending it by following the "module's way" requires editing code in a few places and it's not that flexible so I suggest the above solution.