westdc-zf1/module/Metadata/config/module.config.php

74 lines
2.0 KiB
PHP
Raw Normal View History

<?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(
'Metadata\Controller\Index' => 'Metadata\Controller\IndexController',
),
),
'router' => array(
'routes' => array(
//数据
2014-02-24 09:03:39 +00:00
'data' => array(
'type' => 'Zend\Mvc\Router\Http\Literal',
'options' => array(
'route' => '/data',
'defaults' => array(
'module' => 'Metadata',
'__NAMESPACE__' => 'Metadata\Controller',
'controller' => 'Metadata\Controller\Index',
'action' => 'index',
),
),
'may_terminate' => true,
'child_routes' => array(
'view' => array(
'type' => 'Segment',
'options' => array(
'route' => '[/:uuid]',
'constraints' => array(
'uuid' => '[a-zA-Z][a-zA-Z0-9_-]*',
),
'defaults' => array(
'module' => 'Metadata',
'__NAMESPACE__' => 'Metadata\Controller',
'controller' => 'Metadata\Controller\Index',
'action' => 'view',
),
),
'may_terminate' => true,
),
),
2014-02-24 09:03:39 +00:00
),//data
),//routers
),
'view_manager' => array(
'template_path_stack' => array(
'metadata' => __DIR__ . '/../view',
),
'template_map' => array(
'layout/metadata/pagination' => __DIR__ . '/../view/layout/pagination-news.phtml',
),
),
);