Merge pull request #4947 from slax0rr/develop
[ci skip] Remove needless constructor in model general topics documentation
diff --git a/user_guide_src/source/general/core_classes.rst b/user_guide_src/source/general/core_classes.rst
index 07c0b00..79f73ef 100644
--- a/user_guide_src/source/general/core_classes.rst
+++ b/user_guide_src/source/general/core_classes.rst
@@ -101,6 +101,7 @@
public function __construct()
{
parent::__construct();
+ // Your own constructor code
}
public function index()
diff --git a/user_guide_src/source/general/models.rst b/user_guide_src/source/general/models.rst
index 1cfe736..eb842e9 100644
--- a/user_guide_src/source/general/models.rst
+++ b/user_guide_src/source/general/models.rst
@@ -22,12 +22,6 @@
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 @@
public function __construct()
{
parent::__construct();
+ // Your own constructor code
}
}
@@ -91,6 +86,7 @@
public function __construct()
{
parent::__construct();
+ // Your own constructor code
}
}