bootstrap.php
Table of Contents
Constants
- CONFIG_FILE = $_SERVER["DOCUMENT_ROOT"] . "/../config/config.php"
- DO_NOT_MINIFY = \FALSE
- GLOBAL_METHODS = $_SERVER["DOCUMENT_ROOT"] . "/../Core/globalMethods.php"
- MAIN = "main_container"
- START_TEMPLATE = \VISTAS . "/main/main.php"
- TODAY = \date("Y-m-d")
- Definicion de constantes globales.
- VISTAS = $_SERVER["DOCUMENT_ROOT"] . "/../app/views"
Functions
- app() : App
- Global funtion to access the singleton app instance
Constants
CONFIG_FILE
public
mixed
CONFIG_FILE
= $_SERVER["DOCUMENT_ROOT"] . "/../config/config.php"
DO_NOT_MINIFY
public
mixed
DO_NOT_MINIFY
= \FALSE
GLOBAL_METHODS
public
mixed
GLOBAL_METHODS
= $_SERVER["DOCUMENT_ROOT"] . "/../Core/globalMethods.php"
MAIN
public
mixed
MAIN
= "main_container"
START_TEMPLATE
public
mixed
START_TEMPLATE
= \VISTAS . "/main/main.php"
TODAY
Definicion de constantes globales.
public
mixed
TODAY
= \date("Y-m-d")
Agregar las constantes que sea conveniente usar.
Ejemplo:
- una ruta directa a un directorio de template, ver siguiente ejemplo:
- define("VISTAS_EMPRESA", $_SERVER["DOCUMENT_ROOT"] . "/../app/views/contabilidad/empresa");
VISTAS
public
mixed
VISTAS
= $_SERVER["DOCUMENT_ROOT"] . "/../app/views"
Functions
app()
Global funtion to access the singleton app instance
app() : App