ich ein Problem habe ich, ich habe ein Kind Route nicht lösen konnte, wie folgt aus:Ich habe zwei Aktion für eine einzige Strecke, aber nicht als die URL bewaffnet
'apps'=>array(
'type'=>'Segment',
'options'=>array(
'route' => '/apps[/[:action[/:id]]]',
'constraints' => array(
'action' => '[a-zA-Z][a-zA-Z0-9_-]*',
),
'defaults' => array(
'controller' => 'Apps\Controller\Index',
'action' => 'index'
),
),
'may_terminate' => true,
'child_routes' => array(
'ximages' => array(
'type' => 'Segment',
'options' => array(
'route' => '/ximages[/[:action[/:id_ximage]]]',
'constraints' => array(
'controller' => '[a-zA-Z][a-zA-Z0-9_-]*',
'action' => '[a-zA-Z][a-zA-Z0-9_-]*',
),
'defaults' => array(
'controller' => 'Apps\Controller\xImages',
'action' => 'index'
)
),
),
In der Datei .phtml Ich mag Zugriff auf den Pfad http://miserver/apps/view/1/ximages/images/1
und was ich tue, ist die folgende:
echo $this->url(
'apps/ximages',
array(
'action'=>'view',
'id' => 1,
'id_ximage' => 2
)
);
Aber dieser Code nur druckt mich auf den Weg http://miserver/apps/view/1/ximages/index/1
und weiß nicht, wie Sie den Namen der Aktion des Kindes Route passieren kann.