Language Url
Function: languageUrl
Visibility: public static
Parameter: languageUrl($language,$nodomain)
Description:
Create's the url of the current page in other language. Good for multi language sites - With this function you don't have to worried about links that won't match the language.
Parameters:
(required) - string - $directory - The directory to make an url.
(optional) - bool|false - $noDomain - Decides if we want to include the domain of the site.
Return:
string - The url. If multi language and language is set, then the result url will contain it's language.
Callable from (extended classes):
application: controller,view
advanced: controller,view
operators: controller,view
api: controller,view
example: 1
Let's say that current language on the site/page for example is german, the outcome will present the 2 letter language code in the url.
How to call (example):
Possible origin state (example):
State:
Possible outcome (example):
Output: