Skip to content

03. Framework Constants

Dzyanis Sukhanitski edited this page Mar 13, 2024 · 2 revisions

The next constants are pre-defined in the framework core and can not be changed:

// Current Framework Version:
FWK_VERSION = '#.#' 
// Current PHP Version:
PHP_VERSION = '#.#' 

PATH_VIEWS = 'App/Views/'

PATH_APP_LOG = 'logs/videna.log'
PATH_PHP_LOG = 'error_log'
PATH_SRV_LOG = 'logs/error.php'

// Account types 0..255
USR_UNREG = 0
USR_REG = 100
USR_ADMIN = 200

// Token length for user identifications:
TOKEN_LENGTH = 20 // 20 symbols

// Describes log levels:
EMERGENCY = 'EMERGENCY'
CRITICAL = 'CRITICAL'
ERROR = 'ERROR'
FATAL = 'FATAL'
WARNING = 'WARNING'
ALERT = 'ALERT'
NOTICE = 'NOTICE'
INFO = 'INFO'
DEBUG = 'DEBUG'

// Request types
RQST_HTTP = 'WEB HTTP request'
RQST_API = 'API JSON request'
RQST_APP = 'Web Application request'
RQST_CRON = 'Cron job'
Clone this wiki locally