85 lines
3.4 KiB
PHP
85 lines
3.4 KiB
PHP
<?php
|
|
/**
|
|
* Zend Framework (http://framework.zend.com/)
|
|
*
|
|
* @link http://github.com/zendframework/ZendSkeletonApplication for the canonical source repository
|
|
* @copyright Copyright (c) 2005-2013 Zend Technologies USA Inc. (http://www.zend.com)
|
|
* @license http://framework.zend.com/license/new-bsd New BSD License
|
|
*/
|
|
|
|
return array(
|
|
'service_manager' => array(
|
|
'services' => array(
|
|
//'Auth' => new Sookon\Authentication\AuthenticationService(),
|
|
),
|
|
),
|
|
|
|
'controllers' => array(
|
|
'invokables' => array(
|
|
'Admin\Controller\Index' => 'Admin\Controller\IndexController',
|
|
'Admin\Controller\Article' => 'Admin\Controller\ArticleController',
|
|
'Admin\Controller\Category' => 'Admin\Controller\CategoryController',
|
|
'Admin\Controller\Metadata' => 'Admin\Controller\MetadataController',
|
|
'Admin\Controller\Users' => 'Admin\Controller\UsersController',
|
|
),
|
|
),
|
|
|
|
'router' => array(
|
|
'routes' => array(
|
|
'admin' => array(
|
|
'type' => 'Segment',
|
|
'options' => array(
|
|
'route' => '/admin[/:controller[/:action[/:ac][/page/:page][/id/:id]]]',
|
|
'constraints' => array(
|
|
'controller' => '[a-zA-Z][a-zA-Z0-9_-]*',
|
|
'action' => '[a-zA-Z][a-zA-Z0-9_-]*',
|
|
'ac' => '[a-zA-Z][a-zA-Z0-9_-]*',
|
|
'page' => '[a-zA-Z][a-zA-Z0-9_-]*',
|
|
'id' => '[a-zA-Z][a-zA-Z0-9_-]*',
|
|
),
|
|
'defaults' => array(
|
|
'module' => 'Admin',
|
|
'__NAMESPACE__' => 'Admin\Controller',
|
|
'controller' => 'Admin\Controller\Index',
|
|
'action' => 'index',
|
|
),
|
|
),
|
|
'may_terminate' => true,
|
|
'child_routes' => array(
|
|
'wildcard' => array(
|
|
'type' => 'Wildcard'
|
|
)
|
|
)
|
|
),
|
|
),
|
|
),
|
|
|
|
'view_manager' => array(
|
|
'template_path_stack' => array(
|
|
'admin' => __DIR__ . '/../view',
|
|
),
|
|
'template_map' => array(
|
|
'layout/admin' => __DIR__ . '/../view/layout/admin.phtml',
|
|
'layout/admin/header' => __DIR__ . '/../view/layout/header.phtml',
|
|
'layout/admin/footer' => __DIR__ . '/../view/layout/footer.phtml',
|
|
'layout/admin/pagination' => __DIR__ . '/../view/layout/pagination.phtml',
|
|
|
|
'layout/admin/article/list' => __DIR__ . '/../view/admin/article/list.phtml',
|
|
'layout/admin/article/nav' => __DIR__ . '/../view/admin/article/nav.phtml',
|
|
'layout/admin/article/add' => __DIR__ . '/../view/admin/article/add.phtml',
|
|
|
|
'layout/admin/category/list' => __DIR__ . '/../view/admin/category/list.phtml',
|
|
'layout/admin/category/nav' => __DIR__ . '/../view/admin/category/nav.phtml',
|
|
'layout/admin/category/add' => __DIR__ . '/../view/admin/category/add.phtml',
|
|
'layout/admin/category/moved' => __DIR__ . '/../view/admin/category/moved.phtml',
|
|
|
|
'layout/admin/metadata/list' => __DIR__ . '/../view/admin/metadata/list.phtml',
|
|
'layout/admin/metadata/nav' => __DIR__ . '/../view/admin/metadata/nav.phtml',
|
|
'layout/admin/metadata/sync/nav' => __DIR__ . '/../view/admin/metadata/sync-nav.phtml',
|
|
|
|
'layout/admin/users/list' => __DIR__ . '/../view/admin/users/list.phtml',
|
|
'layout/admin/users/nav' => __DIR__ . '/../view/admin/users/nav.phtml',
|
|
),
|
|
),
|
|
);
|