Skip to content

Commit

Permalink
Ubah config supaya environment default adalah production. Perbaiki ta…
Browse files Browse the repository at this point in the history
…mpilkan halaman error system
  • Loading branch information
eddieridwan committed Apr 29, 2018
1 parent 3d3ce25 commit 8aeb7f9
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 1 deletion.
6 changes: 6 additions & 0 deletions donjo-app/views/errors/html/error_404.php
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
<?php defined('BASEPATH') OR exit('No direct script access allowed'); ?>
<?php
$ci = new CI_Controller();
$ci =& get_instance();
$ci->load->helper('url');
?>
<!DOCTYPE html>
<html lang="en">
<head>
Expand Down
6 changes: 6 additions & 0 deletions donjo-app/views/errors/html/error_db.php
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
<?php defined('BASEPATH') OR exit('No direct script access allowed'); ?>
<?php
$ci = new CI_Controller();
$ci =& get_instance();
$ci->load->helper('url');
?>
<!DOCTYPE html>
<html lang="en">
<head>
Expand Down
6 changes: 6 additions & 0 deletions donjo-app/views/errors/html/error_general.php
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
<?php defined('BASEPATH') OR exit('No direct script access allowed'); ?>
<?php
$ci = new CI_Controller();
$ci =& get_instance();
$ci->load->helper('url');
?>
<!DOCTYPE html>
<html lang="en">
<head>
Expand Down
2 changes: 1 addition & 1 deletion index.php
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@
*
* NOTE: If you change these, also change the error_reporting() code below
*/
define('ENVIRONMENT', isset($_SERVER['CI_ENV']) ? $_SERVER['CI_ENV'] : 'development');
define('ENVIRONMENT', isset($_SERVER['CI_ENV']) ? $_SERVER['CI_ENV'] : 'production');

/*
*---------------------------------------------------------------
Expand Down

0 comments on commit 8aeb7f9

Please sign in to comment.