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

Language Url

Type: core

Class: Lang

Platform: 2v

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