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/creating_libraries.html | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'user_guide/general/creating_libraries.html') diff --git a/user_guide/general/creating_libraries.html b/user_guide/general/creating_libraries.html index 3f0e32cb0..00d0f4aa4 100644 --- a/user_guide/general/creating_libraries.html +++ b/user_guide/general/creating_libraries.html @@ -141,7 +141,7 @@ $this->load->library('Someclass', $params);
class Someclass {

-    function Someclass($params)
+    function __construct($params)
    {
        // Do something with $params
    }
@@ -248,9 +248,9 @@ class MY_Email extends CI_Email {

class MY_Email extends CI_Email {

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