add multi database option along with related zend configuration module (#439)
[openemr.git] / interface / modules / zend_modules / module / Multipledb / config / module.config.php
blobf4cef20bc6bc8c2e8b05443044e9b76bb5dae975
1 <?php
2 /* +-----------------------------------------------------------------------------+
3 * Copyright 2016 matrix israel
4 * LICENSE: This program is free software; you can redistribute it and/or
5 * modify it under the terms of the GNU General Public License
6 * as published by the Free Software Foundation; either version 3
7 * of the License, or (at your option) any later version.
8 * This program is distributed in the hope that it will be useful,
9 * but WITHOUT ANY WARRANTY; without even the implied warranty of
10 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11 * GNU General Public License for more details.
12 * You should have received a copy of the GNU General Public License
13 * along with this program. If not, see
14 * http://www.gnu.org/licenses/licenses.html#GPL
15 * @author Oshri Rozmarin <oshri.rozmarin@gmail.com>
16 * +------------------------------------------------------------------------------+
19 return array(
21 /* declare all controllers */
22 'controllers' => array(
23 'invokables' => array(
24 'Multipledb\Controller\Multipledb' => 'Multipledb\Controller\MultipledbController',
28 /**
29 * routing configuration.
30 * for more option and details - http://zf2.readthedocs.io/en/latest/in-depth-guide/understanding-routing.html?highlight=routing
32 'router' => array(
33 'routes' => array(
34 'multipledb' => array(
35 'type' => 'segment',
36 'options' => array(
37 'route' => '/multipledb[/:action][/:id]',
38 'constraints' => array(
39 'action' => '[a-zA-Z][a-zA-Z0-9_-]*',
40 'id' => '[0-9]+',
42 'defaults' => array(
43 'controller' => 'Multipledb\Controller\multipledb',
44 'action' => 'index',
52 'view_manager' => array(
53 'template_path_stack' => array(
54 'multipledb' => __DIR__ . '/../view',
55 ),'template_map' => array(
56 'multipledb/layout/layout' => __DIR__ . '/../view/layout/layout.phtml',