I'm still experimenting with dynamic routes, extending what was already answered by Rayne here:
https://groups.google.com/forum/#!topic/f3-framework/RNI-KuFO54II'm trying to pass @controller and @action as a parameter to the module now.
Working:
$f3->route('GET|POST /@module/@controller/@action/*','@module\{@controller}Controller->{@action}Action');
What I want now:
$f3->route('GET|POST /@module/@controller/@action/*','{@module}Module->handle({@controller}Controller, {@action}Action)');
I'm getting this error:
Method Not Allowed
HTTP 405 (GET /Module/Controller/List/Test/1/Tester/2)
[C:/web/lib/fatfree/base.php:1650] Base->error(405)
[C:/web/lib/fatfree/base.php:1495] Base->call('Module->handle(Controller, ListAction)',array(Base::__set_state(array(...))))
which makes sense, since base->call expects the arguments as separate parameters. base->route though does not seem to care about that from my point of view.
So is it possible to pass arguments to functions call at this point, and if so, how?