0
동일한 컨트롤러와 동작을 호출하는 4 개의 child_routes가 있습니다.경로의 표준 매개 변수
'noticia' => array( 'type' => 'Segment', 'options' => array( 'route' => 'noticia[/:slug]', 'constraints' => array( 'controller' => '[a-zA-Z][a-zA-Z0-9_-]*', 'action' => '[a-zA-Z][a-zA-Z0-9_-]*', ), 'defaults' => array( '__NAMESPACE__' => 'Application\Controller', 'controller' => 'Post', 'action' => 'index', ), ), ), 'dica' => array( 'type' => 'Segment', 'options' => array( 'route' => 'dica[/:slug]', 'constraints' => array( 'controller' => '[a-zA-Z][a-zA-Z0-9_-]*', 'action' => '[a-zA-Z][a-zA-Z0-9_-]*', ), 'defaults' => array( '__NAMESPACE__' => 'Application\Controller', 'controller' => 'Post', 'action' => 'index', ), ), ), 'ovarejao' => array( 'type' => 'Segment', 'options' => array( 'route' => 'o-varejao[/:slug]', 'constraints' => array( 'controller' => '[a-zA-Z][a-zA-Z0-9_-]*', 'action' => '[a-zA-Z][a-zA-Z0-9_-]*', ), 'defaults' => array( '__NAMESPACE__' => 'Application\Controller', 'controller' => 'Post', 'action' => 'index', ), ), ), 'servicos' => array( 'type' => 'Segment', 'options' => array( 'route' => 'servicos[/:slug]', 'constraints' => array( 'controller' => '[a-zA-Z][a-zA-Z0-9_-]*', 'action' => '[a-zA-Z][a-zA-Z0-9_-]*', ), 'defaults' => array( '__NAMESPACE__' => 'Application\Controller', 'controller' => 'Post', 'action' => 'index', ), ), ),
내가 필요한 것은 이러한 경로를 구분할 수 있도록 매개 변수를 전달하는 것입니다. 어떻게?