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

LoadCfg

Type: core

Class: Basic

Platform: 2v

Function: loadCfg

Visibility: public static

Parameter: loadCfg($fileName,$allowGlobal,$type)

Description:
Loads config files. Loading configs will be made from under config folder according to itinerary settings.
Parameters:
(required) - string - $fileName - The config file name.
(optional) - string - $allowGlobal - Allow config to be on global basic::$cfg.
(optional) - string - $type - The type of config to load - Can be file/xml/db (currently only file is working).
Return:
array - The config properties.
Callable from (extended classes):
application: controller,view
advanced: controller,view
operators: controller,view
api: controller,view
example: 1
We want to load the config "trans" into memory.
How to call (example):
Code:
Info Panel
Roll it!   ⇔