izisoft / yii2-language
Yii2 extention
Installs: 2
Dependents: 0
Suggesters: 0
Security: 0
Stars: 1
Watchers: 3
Forks: 0
Open Issues: 1
Type:yii2-extension
Requires
- php: >=5.4.0
This package is auto-updated.
Last update: 2024-12-24 22:10:12 UTC
README
Get & set Module, Controller, Action from DB (slugs table).
- Frontend
- Option 1: example.com/slug-url => example.com/controller/action
- Option 2: example.com/controller/action (origin router)
- Module (backend | api | ...)
- Option 1: example.com/slug-url => example.com/module/controller/action
- Option 2: example.com/module/slug-url => example.com/module/controller/action
- Option 3: example.com/module/controller/action (origin router)
- Option 4: example.com/module/version/controller/action (api module)
Slug table struct
- url: varchar
- router: varchar
- add more everithing if you want (ex: controller, action, module,...)