Skip to content

Commit

Permalink
fixing requiring the base class using require_once
Browse files Browse the repository at this point in the history
  • Loading branch information
metallurgical committed Mar 21, 2017
1 parent 17dc9c5 commit ec46e69
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,8 @@ Must be noted that, reuseable code already defined and created inside main model
<?php
defined('BASEPATH') OR exit('No direct script access allowed');

// requiring base class
require APPPATH.'/models/Model_app.php';
// requiring once the base class
require_once APPPATH.'/models/Model_app.php';

// extend the base class
class User_model extends Model_app {
Expand Down
2 changes: 1 addition & 1 deletion application/models/User_model.php
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?php
defined('BASEPATH') OR exit('No direct script access allowed');

require APPPATH.'/models/Model_app.php';
require_once APPPATH.'/models/Model_app.php';

// extend Model app instead of CI_Model
// Dont worry, Model_app is a derived class of CI_Model
Expand Down

0 comments on commit ec46e69

Please sign in to comment.