Info Panel
Roll it!   ⇔
1 - Documantation
* Knowledge Base
  • Mvc
  • Application
  • Advanced
  • Operators
  • Api
* Origin Template
  • Customize
* Core Classes
* Classes

* all grey titles exists but not documented yet

Get Language From Url

Type: core

Class: Lang

Platform: 2v

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):
Code:
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):
Code:
Possible origin state (example):
State:
Possible outcome (example):
Output:
Info Panel
Roll it!   ⇔