2017 © Pedro Peláez
 

library global-router

Zend Framework V2 or V3 global route config '/[:module[:/controller[:/action]]]'

image

zfegg/global-router

Zend Framework V2 or V3 global route config '/[:module[:/controller[:/action]]]'

  • Tuesday, May 22, 2018
  • by Moln
  • Repository
  • 2 Watchers
  • 1 Stars
  • 10 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 2 Forks
  • 0 Open issues
  • 2 Versions
  • 0 % Grown

The README.md

Zend Framework Global Router - ZF公共路由

ZendMvc 自带的 Zend\Mvc\ModuleRouteListener 不方便, 每新的 Controller 都需要在 ControllerManager 配置下. Zfegg\GlobalRouter\GlobalModuleRouteListener, (*1)

Installation - 安装

composer require zfegg/global-router

Usage - 使用举例

首先, 在 config/modules.config.php 中添加模块加载., (*2)

return [
    //... Your modules
    'Zfegg\\GlobalRouter'
];

默认路由方式: /module/controller/action/param1/value1/param2/value2/... , 类似ZF1默认路由, (*3)

The Versions

22/05 2018

dev-master

9999999-dev https://github.com/zfegg/global-router

Zend Framework V2 or V3 global route config '/[:module[:/controller[:/action]]]'

  Sources   Download

MIT

The Requires

 

The Development Requires

by Avatar Moln

zf2 route global zfegg

11/07 2016

1.0.1

1.0.1.0 https://github.com/zfegg/global-router

Zend Framework V2 or V3 global route config '/[:module[:/controller[:/action]]]'

  Sources   Download

MIT

The Requires

 

The Development Requires

by Avatar Moln

zf2 route global zfegg