%PDF- %PDF-
Direktori : /var/www/html/bbw/farmaci/kritik-portale/module/Backend/config/ |
Current File : /var/www/html/bbw/farmaci/kritik-portale/module/Backend/config/module.config.php |
<?php namespace Backend; return array( 'form_elements' => array( 'factories' => array( 'Role' => 'Backend\Form\Element\RoleFactory', ) ), 'router' => array( 'routes' => array( 'backend' => array( 'type' => 'Literal', 'options' => array( 'route' => '/backend', 'defaults' => array( 'controller' => 'Backend\Controller\Index', 'action' => 'index', ) ), 'may_terminate' => true, 'child_routes' => array( 'user' => array( 'type' => 'Segment', 'options' => array( 'route' => '/user[/:action]', 'constraints' => array( 'action' => '[a-zA-Z][a-zA-Z0-9_-]*' ), 'defaults' => array( 'controller' => 'Backend\Controller\User', 'action' => 'usertable' ), ), 'may_terminate' => true, 'child_routes' => array( 'params' => array( 'type' => 'Wildcard' ) ) ), 'default' => array( 'type' => 'Segment', 'options' => array( 'route' => '/index[/:action]', 'constraints' => array( 'action' => '[a-zA-Z][a-zA-Z0-9_-]*' ), 'defaults' => array( 'controller' => 'Backend\Controller\Index', 'action' => 'dashboard' ), ), 'may_terminate' => true, 'child_routes' => array( 'params' => array( 'type' => 'Wildcard' ) ) ), ), ), ), ), 'db' => array( //this is for primary adapter.... //other adapter when it needed... 'adapters' => array( 'systemDB' => array( ), 'viewsDB' => array( ), ), ), 'service_manager' => array( 'factories' => array( 'Zend\Db\Adapter\Adapter' => 'Zend\Db\Adapter\AdapterServiceFactory', 'backend' => 'Backend\Navigation\BackendNavigationFactory', ), 'abstract_factories' => array( 'Zend\Cache\Service\StorageCacheAbstractServiceFactory', 'Zend\Log\LoggerAbstractServiceFactory', 'Zend\Db\Adapter\AdapterAbstractServiceFactory', ), 'aliases' => array( 'translator' => 'MvcTranslator', ), 'invokables' => array( 'Backend\Session\Container' => 'Backend\Session\Container', ) ), 'translator' => array( 'locale' => 'en_US', 'translation_file_patterns' => array( array( 'type' => 'gettext', 'base_dir' => __DIR__ . '/../language', 'pattern' => '%s.mo', ), ), ), 'view_helpers' => [ 'aliases' => ['__' => 'translate'], 'invokables' => [ 'widget' => 'Backend\View\Helper\Widget', 'backendTitle' => 'Backend\View\Helper\Title' ], 'factories' => [ 'conFlashMessenger' => 'ConUtil\View\Helper\FlashMessengerFactory', ], ], 'controllers' => array( 'factories' => array( 'Backend\Controller\Index' => 'Backend\Controller\IndexControllerFactory', 'Backend\Controller\User' => 'Backend\Controller\UserControllerFactory', ) ), 'view_manager' => array( 'doctype' => 'HTML5', 'template_map' => array( // 'layout/layout' => __DIR__ . '/../view/layout/layout.phtml', 'layout/smartadmin' => __DIR__ . '/../view/layout/smartadmin.phtml', 'backend/index/index' => __DIR__ . '/../view/backend/index/index.phtml', ), 'template_path_stack' => array( __DIR__ . '/../view', ), 'strategies' => array( 'ViewJsonStrategy', 'View' ), ), // Placeholder for console routes 'console' => array( 'router' => array( 'routes' => array( ), ), ), //Module Layouts 'module_layouts' => array( 'Application' => 'layout/layout', 'Backend' => 'layout/smartadmin', 'Basis' => 'layout/layout', //'Login' => 'layout/layout', ), 'navigation' => [ 'backend' => [ [ 'label' => 'Dashboard', 'route' => 'backend/default', 'icon' => 'home' ], [ 'label' => 'Einstellungen', 'uri' => '#', 'icon' => 'cogs', 'order' => 100, 'pages' => [ [ 'label' => 'Benutzerverwaltung', 'route' => 'backend/user', 'icon' => 'user' ] ] ] ] ], 'asset_manager' => [ 'resolver_configs' => [ 'paths' => [ __DIR__ . '/../public/assets' ] ] ] );