diff options
author | Andrey Andreev <narf@devilix.net> | 2016-12-16 13:52:54 +0100 |
---|---|---|
committer | Andrey Andreev <narf@devilix.net> | 2016-12-16 13:53:32 +0100 |
commit | 0c48f3982196df8171bd6f17f2660077168a3864 (patch) | |
tree | 6d8c613922b53decf3c55182361f1d147b2b1ab2 /user_guide_src/source/general/models.rst | |
parent | 6e2e9e937f9b973e677a8dacae45eccdadc306f0 (diff) |
Merge pull request #4947 from slax0rr/develop
[ci skip] Remove needless constructor in model general topics documentation
Diffstat (limited to 'user_guide_src/source/general/models.rst')
-rw-r--r-- | user_guide_src/source/general/models.rst | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/user_guide_src/source/general/models.rst b/user_guide_src/source/general/models.rst index 1cfe736de..eb842e927 100644 --- a/user_guide_src/source/general/models.rst +++ b/user_guide_src/source/general/models.rst @@ -22,12 +22,6 @@ model class might look like:: public $content; public $date; - public function __construct() - { - // Call the CI_Model constructor - parent::__construct(); - } - public function get_last_ten_entries() { $query = $this->db->get('entries', 10); @@ -76,6 +70,7 @@ The basic prototype for a model class is this:: public function __construct() { parent::__construct(); + // Your own constructor code } } @@ -91,6 +86,7 @@ The file name must match the class name. For example, if this is your class:: public function __construct() { parent::__construct(); + // Your own constructor code } } |