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/creating_libraries.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/creating_libraries.html')
-rw-r--r-- | user_guide/general/creating_libraries.html | 6 |
1 files changed, 3 insertions, 3 deletions
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', <kbd>$params</kbd>);</code> <br /> class Someclass {<br /> <br /> - function Someclass($params)<br /> + function __construct($params)<br /> {<br /> // Do something with $params<br /> }<br /> @@ -248,9 +248,9 @@ class MY_Email extends CI_Email {<br /><br /> <code> class MY_Email extends CI_Email {<br /> <br /> - function My_Email()<br /> + function __construct()<br /> {<br /> - parent::CI_Email();<br /> + parent::__construct();<br /> }<br /> }</code> |