routing

Allows adding custom frontend routing rules.

Blog

Input (passed by reference)

$params array App's default routing rules array.
… your plugin code …

Output

$return['route']
Custom routing rules in the form of an associative array similar to the way default rules are specified in app's config file routing.php.
Blog

Plugin code example

PHP

public function routing($route = array())
{
    $url = blogMyPluginHelper::getUrlByRoute($route);
    return array(
        $url => 'frontend/'
    );
}