Module galerie: Config: Ajout de la route index
authorSébastien CHAZALLET <s.chazallet@gmail.com>
Fri, 2 Nov 2012 10:27:37 +0000 (11:27 +0100)
committerSébastien CHAZALLET <s.chazallet@gmail.com>
Fri, 2 Nov 2012 10:27:37 +0000 (11:27 +0100)
module/Galerie/config/module.config.php

index 7832b4d..18cffd3 100644 (file)
@@ -22,4 +22,21 @@ return array(
             'galerie' => __DIR__ . '/../view',
         ),
     ),
+    'router' => array(
+        'routes' => array(
+            'galerie' => array(
+                'type'    => 'Literal',
+                'options' => array(
+                    'route'    => '/galerie',
+                    'defaults' => array(
+                        '__NAMESPACE__' => 'Galerie\Controller',
+                        'controller'    => 'Index',
+                        'action'        => 'index',
+                    ),
+                ),
+                'verb' => 'get',
+                'may_terminate' => true,
+            ),
+        ),
+    ),
 );