Well so far I came up with this:

            'recording' => array(
                'type' => 'Segment',
                'options' => array(
                    'route' => '/recording[/:id]',
                    'constraints' => array(
                        'id' => '[0-9]+',
                    ),
                    'defaults' => array(
                        'controller' => 'PublicAPI\Controller\Recording'
                    ),
                ),
                'may_terminate' => true,
                'child_routes' => array(
                    'wildcard' => array(
                        'type' => 'Wildcard',
                    ), 

this way it gets mapped to getList() and used:

$event   = $this->getEvent();
$matches = $event->getRouteMatch();
$value = $matches->getParam('presenter');

and see if /recording/presenter/1 matches.



--
View this message in context: 
http://zend-framework-community.634137.n4.nabble.com/How-to-handle-Hierarchical-Association-in-URI-with-ZF2-AbstractRestfulController-tp4659556p4659558.html
Sent from the Zend Framework mailing list archive at Nabble.com.

-- 
List: [email protected]
Info: http://framework.zend.com/archives
Unsubscribe: [email protected]


Reply via email to