...
The called build()-method expects an associative array wich has to have at least a value for the key 'lang' but any parameter can be appended. If another builder than cUriBuilderFrontcontent is used (see below) further keys may be required.
You can give the data as a default URI too. In this case the given URI is parsed (see below) before building it anew.
Code Block | ||||
---|---|---|---|---|
| ||||
$url = "front_content.php?idart=$idart&lang=$lang"; |
...
$url = cUri::getInstance()->build($url); |
Tip | |||||||
---|---|---|---|---|---|---|---|
| |||||||
If you like to create a link to the current article you can use this snippet instead which gets the values for the current language and article from the registry:
|
Relative vs. absolute URIs
...