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

Set Preferred Protocol

Variable: $cfg['router']['preferredProtocol']

Effected class: router

Config type: router

Type of data: string|null

Platform: 2v

How to call: self::$cfg['router']['preferredProtocol']

(only from effected classes)

Description:
Can set if the site will use http or https as preferred protocol. If trying to get address that is opposite of what we set here, the link will be redirected to the set protocol.
Available options:
Null - Disabled.
Http.
Https.
example: 1
The default set of "preferredProtocol".
How to set (example):
Code:
example: 2
How to set https on local server? On xampp for an example, in file: c:\xampp\apache\conf\extra\httpd-vhosts.conf we have to add those lines.
How to set (example):
Code:
Info Panel
Roll it!   ⇔