\TranslatableController
Allows controllers to define multiple url segments and url handlers to handle for example translations or a scenario where you want both the singular name and plural name of your controller to map to it.
- Author: Janne Klouman <janne@klouman.com>
Synopsis
interface TranslatableController
{
- // methods
- public array getValidUrlSegments()
- public array getValidUrlHandlers()
Methods
public
- getValidUrlHandlers() — Define multiple URL handlers as an array in which key is route and value is controller action.
- getValidUrlSegments() — Define multiple URL segments that will hit the controller.