diff options
author | Andrey Andreev <narf@devilix.net> | 2017-11-20 08:58:20 +0100 |
---|---|---|
committer | Andrey Andreev <narf@devilix.net> | 2017-11-20 08:58:20 +0100 |
commit | e1a9410d1a14c20e034d9fbab2da72e0fdf49f17 (patch) | |
tree | d82a1051d8043518429af8a9a23aae281bb8779f /user_guide_src/source/general/models.rst | |
parent | c45caeac4f45b83fbb3655f62638ebcf913981c8 (diff) | |
parent | 4a567782a2ece1ceffebfc1efa580f654df8be1f (diff) |
Merge branch '3.1-stable' into develop
Diffstat (limited to 'user_guide_src/source/general/models.rst')
-rw-r--r-- | user_guide_src/source/general/models.rst | 14 |
1 files changed, 1 insertions, 13 deletions
diff --git a/user_guide_src/source/general/models.rst b/user_guide_src/source/general/models.rst index eb842e927..0b20164e9 100644 --- a/user_guide_src/source/general/models.rst +++ b/user_guide_src/source/general/models.rst @@ -67,12 +67,6 @@ The basic prototype for a model class is this:: class Model_name extends CI_Model { - public function __construct() - { - parent::__construct(); - // Your own constructor code - } - } Where **Model_name** is the name of your class. Class names **must** have @@ -83,12 +77,6 @@ The file name must match the class name. For example, if this is your class:: class User_model extends CI_Model { - public function __construct() - { - parent::__construct(); - // Your own constructor code - } - } Your file will be this:: @@ -176,4 +164,4 @@ database. The following options for connecting are available to you: $config['pconnect'] = FALSE; $config['db_debug'] = TRUE; - $this->load->model('model_name', '', $config);
\ No newline at end of file + $this->load->model('model_name', '', $config); |