Get Language From Url
Function: getLanguageFromUrl
Visibility: public static
Parameter: getLanguageFromUrl()
Description:
Will get the language code from the url, even if empty.
Return:
string - The language code.
Callable from (extended classes):
application: controller,view
advanced: controller,view
operators: controller,view
api: controller,view
example: 1
If our default language is "en" and this is our url.
How to call (example):
Possible origin state (example):
State:
Possible outcome (example):
Output:
example: 2
If our default language is "en" and this is our url.
How to call (example):
Possible origin state (example):
State:
Possible outcome (example):
Output: