Skip to content

Commit

Permalink
Patch 0.1
Browse files Browse the repository at this point in the history
First preversion, partially usable
  • Loading branch information
RemyTombez committed Jul 9, 2020
1 parent d068238 commit 4e25d3b
Show file tree
Hide file tree
Showing 82 changed files with 5,895 additions and 2,123 deletions.
26 changes: 26 additions & 0 deletions application/config/MY_constants.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
<?php
defined('BASEPATH') OR exit('No direct script access allowed');

/*
|--------------------------------------------------------------------------
| CUSTOM CONSTANTS
|--------------------------------------------------------------------------
|
| These are constants defined specially for this application.
|
*/

define('FORMATION_NUMBER_MAX_LENGTH',5);
define('OFFICIAL_NAME_MAX_LENGTH',100);
define('SYMBOL_MAX_LENGTH',10);
define('COMPETENCE_DOMAIN_NAME_MAX_LENGTH',100);
define('OPERATIONAL_COMPETENCE_NAME_MAX_LENGTH',150);
define('TAXONOMY_MAX_VALUE',6);
define('OBJECTIVE_NAME_MAX_LENGTH',350);
define('SQL_TEXT_MAX_LENGTH',65535);


/* Access levels */
define('ACCESS_LVL_APPRENTICE', 1);
define('ACCESS_LVL_TRAINER', 2);
define('ACCESS_LVL_ADMIN', 4);
7 changes: 7 additions & 0 deletions application/config/constants.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,13 @@

/*
|--------------------------------------------------------------------------
| Inculde separate custom constants file
|--------------------------------------------------------------------------
*/
include'MY_constants.php';

/*
|--------------------------------------------------------------------------
| Display Debug backtrace
|--------------------------------------------------------------------------
|
Expand Down
2 changes: 1 addition & 1 deletion application/config/routes.php
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,6 @@
| Examples: my-controller/index -> my_controller/index
| my-controller/my-method -> my_controller/my_method
*/
$route['default_controller'] = 'welcome';
$route['default_controller'] = 'apprentice';
$route['404_override'] = '';
$route['translate_uri_dashes'] = FALSE;
Loading

0 comments on commit 4e25d3b

Please sign in to comment.