diff options
author | Pascal Kriete <pascal.kriete@ellislab.com> | 2010-11-10 22:41:23 +0100 |
---|---|---|
committer | Pascal Kriete <pascal.kriete@ellislab.com> | 2010-11-10 22:41:23 +0100 |
commit | e79d41a0de8a21db83fdb6b3e25ae65c9923c46d (patch) | |
tree | 6eddba47a27b9ee5d7a53315aaaaa7bf86df856c /user_guide/general/models.html | |
parent | 00921a54feb7fde4444401ab93d77780c6c3bb96 (diff) |
Userguide tweaks to show proper PHP 5 examples and removing the compat helper from the menu.
Diffstat (limited to 'user_guide/general/models.html')
-rw-r--r-- | user_guide/general/models.html | 12 |
1 files changed, 6 insertions, 6 deletions
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 {<br /> var $content = '';<br /> var $date = '';<br /> <br /> - function Blogmodel()<br /> + function __construct()<br /> {<br /> // Call the Model constructor<br /> - parent::CI_Model();<br /> + parent::__construct();<br /> }<br /> <br /> function get_last_ten_entries()<br /> @@ -128,9 +128,9 @@ want this type of organization.</p> <code> class <var>Model_name</var> extends CI_Model {<br /> <br /> - function <var>Model_name</var>()<br /> + function <var>__construct</var>()<br /> {<br /> - parent::CI_Model();<br /> + parent::__construct();<br /> }<br /> }</code> @@ -142,9 +142,9 @@ Make sure your class extends the base Model class.</p> <code> class <var>User_model</var> extends CI_Model {<br /> <br /> - function <var>User_model</var>()<br /> + function <var>__construct</var>()<br /> {<br /> - parent::CI_Model();<br /> + parent::__construct();<br /> }<br /> }</code> |