Skip to content
This repository has been archived by the owner on Mar 25, 2021. It is now read-only.
/ global-router Public archive

ZF2/3 common routes like ZF1 default. | ZF2/3 通用公共路由

License

Notifications You must be signed in to change notification settings

zfegg/global-router

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Zend Framework Global Router - ZF公共路由

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

Installation - 安装

composer require zfegg/global-router

Usage - 使用举例

首先, 在 config/modules.config.php 中添加模块加载.

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

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

About

ZF2/3 common routes like ZF1 default. | ZF2/3 通用公共路由

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages