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

Url Maker/creator

Type: core

Class: Lang

Platform: 2v

Function: url

Visibility: public static

Parameter: url($directory,$nodomain)

Description:
Create's a full/half url for any given directory. The pro of this function is that it return's also the language that we use on the site at the specific time we use it. Language and default language can be set at config primary file: lang.
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 japanes, the outcome will present the 2-5 letter language code in the url.
How to call (example):
Code:
Possible outcome (example):
Output:
example: 2
Now, let's say that current language on the site/page for example is english and the default language is also english, the outcome will NOT present the 2-5 letter language code in the url.
How to call (example):
Code:
Possible outcome (example):
Output:
Info Panel
Roll it!   ⇔