# Class Opencart\System\Library\Url

Class URL

Located at system\library\url.php

Methods
`public` | `__construct(string $url)` Constructor Constructor | #
`public` | `addRewrite(Controller $rewrite): void` addRewrite Add a rewrite method to the URL system addRewrite Add a rewrite method to the URL system | #
`public` | `link(string $route, mixed $args = '', bool $js = false): string` Link Generates a URL Link Generates a URL | #

OpenCart API API documentation generated by ApiGen dev-master