FOFTemplateUtils::route

Merges the current url with new or changed parameters.

This method merges the route string with the url parameters defined in current url. The parameters defined in current url, but not given in route string, will automatically reused in the resulting url. But only these following parameters will be reused: option, view, layout, format Example: Assuming that current url is: http://fobar.com/index.php?option=com_foo&view=cpanel <code> <?php echo FOFTemplateutils::route('view=categories&layout=tree'); ?> </code> Result: http://fobar.com/index.php?option=com_foo&view=categories&layout=tree