I trying to find a solution to pass a any number of parameter using route.
As an example, if my route is
$routes->get('pages/section/widgets/(:num)/(:num)/(:num)', 'Section::widgets/$1/$2/$3');
Here I have to promptly declare number of parameters I am passing i.e. 3.
But if I am not sure about number of parameters, then how can I pass that in ci4? I went through documentation and tried all the possible placeholders. But it won't work as expected.
For more clarity in Laravel we use -
Route::get('/{page?}', 'Frontend\HomeController@inside')->where('page', '.*');
So in laravel it accept all the parameter and redirect to it's respective method.
Thank you in advance.