\TranslatableControllers
Core functions for making controllers and actions translatable.
- Author: Janne Klouman <janne@klouman.com>
Synopsis
class TranslatableControllers
{
- // methods
- public static bool applyControllerRoutes()
- public static bool applyControllerUrlHandlers()
Methods
public
- applyControllerRoutes() — Applies alternate routes to the controllers for all the classes that implement the {@link TranslatableController} interface and return an array with the alternate routes.
- applyControllerUrlHandlers() — Applies the {@link TranslatableControllerExtension} extension to all controllers that implement the {@link TranslatableController} interface. The extension in its turn applies the url handlers defined by the controller.