diff options
author | Rick Ellis <rick.ellis@ellislab.com> | 2007-06-09 02:25:57 +0200 |
---|---|---|
committer | Rick Ellis <rick.ellis@ellislab.com> | 2007-06-09 02:25:57 +0200 |
commit | 1f852630d606e6bfd7b28dd5f599a29c437d81e8 (patch) | |
tree | 1f2a4262bda3db128bc893540e72861ff80e18bb /user_guide/general | |
parent | a4629f51b761e25b02025304cbbdd25e9377b7fe (diff) |
Diffstat (limited to 'user_guide/general')
-rw-r--r-- | user_guide/general/creating_libraries.html | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/user_guide/general/creating_libraries.html b/user_guide/general/creating_libraries.html index f17c3cf6d..64300929a 100644 --- a/user_guide/general/creating_libraries.html +++ b/user_guide/general/creating_libraries.html @@ -200,7 +200,11 @@ etc. <br /><br />
<var>$CI =& get_instance();</var>
<br /><br />
-<kbd>This is very important.</kbd> Assigning by reference allows you to use the original CodeIgniter object rather than creating a copy of it.</p>
+<kbd>This is very important.</kbd> Assigning by reference allows you to use the original CodeIgniter object rather than creating a copy of it.
+<br /><br />
+<kbd>Also, please note:</kbd> If you are running PHP 4 it's usually best to avoid calling <dfn>get_instance()</dfn>
+from within your class constructors. PHP 4 has trouble referencing the CI super object within application constructors
+since objects do not exist until the class is fully instantiated.</p>
<h2>Replacing Native Libraries with Your Versions</h2>
|