I am rebuilding some of my addons and right now I am unsure what to do with all the actions I need.
My first add-on is going to be some sort of garage where my members can show their cars.
Here's the url structure I would like to use
/garage => index (list of garages)
/garage/2 => details for garage with id of 2
/garage/2/car/1 => details for a car with id of 1 parked in garage with id of 2
And (for admins and the owner of the garage)
I am already using
$action = $router->resolveActionWithIntegerParam($routePath, $request, 'garage_id');
Now when I type /garage/2/car/1 into my browser I get:
The controller Garage_ControllerPublic_Index does not define an action called Car1.
Is it even possible or do I need to create a new route (like garage-car/2/edit)?