X-Git-Url: http://git.inspyration.org/?a=blobdiff_plain;f=module%2FGalerie%2Fconfig%2Fmodule.config.php;h=066f630a64c0d1cbbd2893a14453d19660a44d90;hb=7054185396fe453db27a958653a70d76c1186c21;hp=81f78ead66b73a0091147e360b1d9c1bbd876bde;hpb=ca6310c6f9cbec17156d11d13d24d0d845b7a1f2;p=zf2.biz%2Fgalerie.git diff --git a/module/Galerie/config/module.config.php b/module/Galerie/config/module.config.php index 81f78ea..066f630 100644 --- 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' => - 'Galerie\Controller\IndexController' + 'Galerie\Controller\IndexController', + ), + ), + 'controller_plugins' => array( + 'invokables' => array( + 'MessageGetter' => + 'Custom\Mvc\Controller\Plugin\MessageGetter', ), ), 'view_manager' => array( @@ -16,11 +22,18 @@ return array( 'galerie/index/del' => __DIR__ . '/../view/galerie/index/del.phtml', 'galerie/index/view' => - __DIR__ . '/../view/galerie/index/view.phtml', + __DIR__ . '/../view/galerie/index/view.phtml', + 'galerie/mail/test' => + __DIR__ . '/../view/galerie/mail/test.phtml', + 'galerie/index/rsscheck' => + __DIR__ . '/../view/galerie/index/rsscheck.phtml', ), 'template_path_stack' => array( 'galerie' => __DIR__ . '/../view', ), + 'strategies' => array( + 'ViewJsonStrategy', + ), ), 'router' => array( 'routes' => array( @@ -37,7 +50,6 @@ return array( 'verb' => 'get', 'may_terminate' => true, 'child_routes' => array( - 'add' => array( 'type' => 'Literal', 'options' => array( @@ -100,6 +112,77 @@ return array( ), 'verb' => 'get,post', ), + 'list' => array( + 'type' => 'Literal', + 'options' => array( + 'route' => '/liste', + 'defaults' => array( + 'action' => 'list', + ), + ), + 'verb' => 'get', + ), + 'csv' => array( + 'type' => 'Literal', + 'options' => array( + 'route' => '/csv', + 'defaults' => array( + 'action' => 'csv', + ), + ), + 'verb' => 'get', + ), + 'excel' => array( + 'type' => 'Literal', + 'options' => array( + 'route' => '/excel', + 'defaults' => array( + 'action' => 'excel', + ), + ), + 'verb' => 'get', + ), + 'mail' => array( + 'type' => 'Literal', + 'options' => array( + 'route' => '/mail', + 'defaults' => array( + 'action' => 'mail', + ), + ), + 'verb' => 'get', + ), + 'pie' => array( + 'type' => 'Literal', + 'options' => array( + 'route' => '/pie', + 'defaults' => array( + 'action' => 'pie', + ), + ), + 'verb' => 'get', + ), + 'rss' => array( + 'type' => 'Literal', + 'options' => array( + 'route' => '/rss', + 'defaults' => array( + 'action' => 'rss', + ), + ), + 'verb' => 'get', + ), + 'rsscheck' => array( + 'type' => 'Literal', + 'options' => array( + 'route' => '/rsscheck', + 'defaults' => array( + 'action' => 'rsscheck', + ), + ), + 'verb' => 'get', + ), +/* 'default' => array( 'type' => 'Segment', 'options' => array( @@ -111,7 +194,7 @@ return array( 'defaults' => array( ), ), - ), + ),*/ ), ), ), @@ -130,6 +213,31 @@ return array( 'pattern' => '%s.mo', 'text_domain' => 'galerie', ), + array( + 'type' => 'phpArray', + 'base_dir' => __DIR__ . '/../language/val', + 'pattern' => 'Zend_Validate_%s.php', + 'text_domain' => 'val', + ), ), ), + 'mail' => array( + 'name' => 'free', + 'host' => 'smtp.free.fr', + 'port' => 25, + ), + 'rss' => array( + 'title' => 'Galeries', + 'description' => 'Liste des galeries disponibles', + 'link' => 'http://zf2.biz/galeries', + 'setfeedlink' => array( + 'link' => 'http://zf2.biz/galeries/rss', + 'type' => 'rss' + ), + 'author' => array( + 'name' => 'Sébastien CHAZALLET', + 'email' => 'contact@zf2.biz', + 'uri' => 'http://zf2.biz', + ) + ), );