File: system/constants/constants.php

Recommend this page to a friend!
  Classes of Dimitri Sitchet  >  dframework  >  system/constants/constants.php  >  Download  
File: system/constants/constants.php
Role: Auxiliary script
Content type: text/plain
Description: Auxiliary script
Class: dframework
Framework to build PHP applications
Author: By
Last change:
Date: 2 months ago
Size: 980 bytes
 

Contents

Class file image Download
<?php

define
('DS', DIRECTORY_SEPARATOR);

define('BASEPATH', dirname(SYST_DIR).DS);

define('VIEW_DIR', APP_DIR . 'views' . DS);

define('LAYOUT_DIR', VIEW_DIR . 'reserved' . DS . 'layouts' . DS);

define('CONTROLLER_DIR', APP_DIR . 'controllers' . DS);

define('MODEL_DIR', APP_DIR . 'models' . DS);

define('HELPER_DIR', APP_DIR . 'helpers' . DS);

define('LIBRARY_DIR', APP_DIR . 'libraries' . DS);

define('ENTITY_DIR', APP_DIR . 'entities' . DS);

define('RESOURCE_DIR', APP_DIR . 'resources' . DS);


/*
 * Database constants
*/
define('DF_FOBJ', 1); // fetch_obj
define('DF_FARR', 2); // fetch_array
define('DF_FNUM', 3); // fetch_num
define('DF_FCLA', 4); // fetch_class

/*
 * Les Modules pour les exceptions
 * */
define('DF_MOD_DB', 1); // Les erreurs liees a la base de donnees
define('DF_MOD_DEP', 2); // Les erreurs liees aux dependances internes


/**
 * Defines a constant for framework's classes directories
 */
define("CLASSES", serialize([SYST_DIR . 'core']));


For more information send a message to info at phpclasses dot org.