You can set global parameters in a router which are automatically
supplied to a route when assembling through
setGlobalParam(). If a global parameter is set
but also given to the assemble method directly, the user parameter
overrides the global parameter. You can set a global parameter this
way:
<?php
$router->setGlobalParam('lang', 'en');




