projects
/
zf2.biz
/
galerie.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Rajout des aides de vue et d'action
[zf2.biz/galerie.git]
/
module
/
Galerie
/
config
/
module.config.php
diff --git
a/module/Galerie/config/module.config.php
b/module/Galerie/config/module.config.php
index
81f78ea
..
5c06d9c
100644
(file)
--- a/
module/Galerie/config/module.config.php
+++ b/
module/Galerie/config/module.config.php
@@
-4,7
+4,13
@@
return array(
'controllers' => array(
'invokables' => array(
'Galerie\Controller\Index' =>
'controllers' => array(
'invokables' => array(
'Galerie\Controller\Index' =>
- 'Galerie\Controller\IndexController'
+ 'Galerie\Controller\IndexController',
+ ),
+ ),
+ 'controller_plugins' => array(
+ 'invokables' => array(
+ 'MessageGetter' =>
+ 'Custom\Mvc\Controller\Plugin\MessageGetter',
),
),
'view_manager' => array(
),
),
'view_manager' => array(
@@
-21,6
+27,9
@@
return array(
'template_path_stack' => array(
'galerie' => __DIR__ . '/../view',
),
'template_path_stack' => array(
'galerie' => __DIR__ . '/../view',
),
+ 'strategies' => array(
+ 'ViewJsonStrategy',
+ ),
),
'router' => array(
'routes' => array(
),
'router' => array(
'routes' => array(
@@
-37,7
+46,6
@@
return array(
'verb' => 'get',
'may_terminate' => true,
'child_routes' => array(
'verb' => 'get',
'may_terminate' => true,
'child_routes' => array(
-
'add' => array(
'type' => 'Literal',
'options' => array(
'add' => array(
'type' => 'Literal',
'options' => array(
@@
-100,6
+108,16
@@
return array(
),
'verb' => 'get,post',
),
),
'verb' => 'get,post',
),
+ 'list' => array(
+ 'type' => 'Literal',
+ 'options' => array(
+ 'route' => '/liste',
+ 'defaults' => array(
+ 'action' => 'list',
+ ),
+ ),
+ 'verb' => 'get',
+ ),/*
'default' => array(
'type' => 'Segment',
'options' => array(
'default' => array(
'type' => 'Segment',
'options' => array(
@@
-111,7
+129,7
@@
return array(
'defaults' => array(
),
),
'defaults' => array(
),
),
- ),
+ ),*/
),
),
),
),
),
),
@@
-130,6
+148,12
@@
return array(
'pattern' => '%s.mo',
'text_domain' => 'galerie',
),
'pattern' => '%s.mo',
'text_domain' => 'galerie',
),
+ array(
+ 'type' => 'phpArray',
+ 'base_dir' => __DIR__ . '/../language/val',
+ 'pattern' => 'Zend_Validate_%s.php',
+ 'text_domain' => 'val',
+ ),
),
),
);
),
),
);