Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

upgrade ke CI 3 php 7.2 #13

Open
wants to merge 4 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
/application/cache/*
/application/logs
6 changes: 6 additions & 0 deletions application/.htaccess
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
<IfModule authz_core_module>
Require all denied
</IfModule>
<IfModule !authz_core_module>
Deny from all
</IfModule>
6 changes: 6 additions & 0 deletions application/cache/.htaccess
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
<IfModule authz_core_module>
Require all denied
</IfModule>
<IfModule !authz_core_module>
Deny from all
</IfModule>
11 changes: 11 additions & 0 deletions application/cache/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
<!DOCTYPE html>
<html>
<head>
<title>403 Forbidden</title>
</head>
<body>

<p>Directory access is forbidden.</p>

</body>
</html>
20 changes: 20 additions & 0 deletions application/config/app.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
<?php

defined('BASEPATH') or exit('No direct script access allowed');
$config['table'] = [
'table_open' => '<table class="table text-center table-bordered" id="datatable">',
'thead_open' => '<thead class="default">',
];
$config['status'] = [
'active' => 'A',
'inactive' => 'I',
'void' => 'V',
'rejected' => 'R'
];

$config['jenisKelamin'] = [
'pria' => 'M',
'laki-laki' => 'M',
'wanita' => 'F',
'perempuan' => 'F',
];
87 changes: 51 additions & 36 deletions bmt-system/application/config/autoload.php → application/config/autoload.php
100755 → 100644
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
<?php

defined('BASEPATH') or exit('No direct script access allowed');

/*
| -------------------------------------------------------------------
| AUTO-LOADER
Expand All @@ -18,53 +21,71 @@
|
| These are the things you can load automatically:
|
| 1. Libraries
| 2. Helper files
| 3. Plugins
| 4. Custom config files
| 5. Language files
| 6. Models
| 1. Packages
| 2. Libraries
| 3. Drivers
| 4. Helper files
| 5. Custom config files
| 6. Language files
| 7. Models
|
*/

/*
| -------------------------------------------------------------------
| Auto-load Packages
| -------------------------------------------------------------------
| Prototype:
|
| $autoload['packages'] = array(APPPATH.'third_party', '/usr/local/shared');
|
*/
$autoload['packages'] = array();

/*
| -------------------------------------------------------------------
| Auto-load Libraries
| -------------------------------------------------------------------
| These are the classes located in the system/libraries folder
| or in your system/application/libraries folder.
| These are the classes located in system/libraries/ or your
| application/libraries/ directory, with the addition of the
| 'database' library, which is somewhat of a special case.
|
| Prototype:
|
| $autoload['libraries'] = array('database', 'session', 'xmlrpc');
| $autoload['libraries'] = array('database', 'email', 'session');
|
| You can also supply an alternative library name to be assigned
| in the controller:
|
| $autoload['libraries'] = array('user_agent' => 'ua');
*/

$autoload['libraries'] = array('database','session','authlib','allfunct','message');

//$autoload['libraries'] = array('database','table','form_builder','pagination');
$autoload['libraries'] = array('database','session','authlib','allfunct','message','encryption');

/*
| -------------------------------------------------------------------
| Auto-load Helper Files
| Auto-load Drivers
| -------------------------------------------------------------------
| These classes are located in system/libraries/ or in your
| application/libraries/ directory, but are also placed inside their
| own subdirectory and they extend the CI_Driver_Library class. They
| offer multiple interchangeable driver options.
|
| Prototype:
|
| $autoload['helper'] = array('url', 'file');
| $autoload['drivers'] = array('cache');
*/

$autoload['helper'] = array('url','jsonwrapper/jsonwrapper');

$autoload['drivers'] = array();

/*
| -------------------------------------------------------------------
| Auto-load Plugins
| Auto-load Helper Files
| -------------------------------------------------------------------
| Prototype:
|
| $autoload['plugin'] = array('captcha', 'js_calendar');
| $autoload['helper'] = array('url', 'file');
*/

$autoload['plugin'] = array();

$autoload['helper'] = array('url','jsonwrapper/jsonwrapper');

/*
| -------------------------------------------------------------------
Expand All @@ -78,10 +99,9 @@
| config files. Otherwise, leave it blank.
|
*/

//$autoload['config'] = array('app','pagination');
$autoload['config'] = array();


/*
| -------------------------------------------------------------------
| Auto-load Language files
Expand All @@ -90,28 +110,23 @@
|
| $autoload['language'] = array('lang1', 'lang2');
|
| NOTE: Do not include the "_lang" part of your file. For example
| NOTE: Do not include the "_lang" part of your file. For example
| "codeigniter_lang.php" would be referenced as array('codeigniter');
|
*/

$autoload['language'] = array();


/*
| -------------------------------------------------------------------
| Auto-load Models
| -------------------------------------------------------------------
| Prototype:
|
| $autoload['model'] = array('model1', 'model2');
| $autoload['model'] = array('first_model', 'second_model');
|
| You can also supply an alternative model name to be assigned
| in the controller:
|
| $autoload['model'] = array('first_model' => 'first');
*/

$autoload['model'] = array();



/* End of file autoload.php */
/* Location: ./system/application/config/autoload.php */
?>
Loading