From e79d41a0de8a21db83fdb6b3e25ae65c9923c46d Mon Sep 17 00:00:00 2001 From: Pascal Kriete Date: Wed, 10 Nov 2010 16:41:23 -0500 Subject: Userguide tweaks to show proper PHP 5 examples and removing the compat helper from the menu. --- user_guide/general/models.html | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'user_guide/general/models.html') diff --git a/user_guide/general/models.html b/user_guide/general/models.html index 35ab08d20..466996648 100644 --- a/user_guide/general/models.html +++ b/user_guide/general/models.html @@ -83,10 +83,10 @@ class Blogmodel extends CI_Model {
    var $content = '';
    var $date    = '';

-    function Blogmodel()
+    function __construct()
    {
        // Call the Model constructor
-        parent::CI_Model();
+        parent::__construct();
    }
    
    function get_last_ten_entries()
@@ -128,9 +128,9 @@ want this type of organization.

class Model_name extends CI_Model {

-    function Model_name()
+    function __construct()
    {
-        parent::CI_Model();
+        parent::__construct();
    }
}
@@ -142,9 +142,9 @@ Make sure your class extends the base Model class.

class User_model extends CI_Model {

-    function User_model()
+    function __construct()
    {
-        parent::CI_Model();
+        parent::__construct();
    }
}
-- cgit v1.2.3-24-g4f1b