From 1f852630d606e6bfd7b28dd5f599a29c437d81e8 Mon Sep 17 00:00:00 2001 From: Rick Ellis Date: Sat, 9 Jun 2007 00:25:57 +0000 Subject: --- user_guide/general/creating_libraries.html | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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.

$CI =& get_instance();

-This is very important. Assigning by reference allows you to use the original CodeIgniter object rather than creating a copy of it.

+This is very important. Assigning by reference allows you to use the original CodeIgniter object rather than creating a copy of it. +

+Also, please note: If you are running PHP 4 it's usually best to avoid calling get_instance() +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.

Replacing Native Libraries with Your Versions

-- cgit v1.2.3-24-g4f1b