Skip to main content

fungsi & get_instance();

June 4, 2009 by unay

unay's picture

fungsi & get_instance(); ni untuk pa?

maaf maklum newbie hehee

Comments

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.

BLS:

June 28, 2009 by syabac, 2 years 31 weeks ago
Comment: 5556

syabac's picture

coba jawab ah..
fungsi tersebut buat ngedapetin current CI instance..
nilai yang diberikan mereferensi ke CI super object..
biasanya fungsi tsb dipake buat yang mau akses CI dari luar controller/model/view, misal plugins, helper, atau library..

jadi dengan adanya fungsi ini kita ga usah create new CI object, kita tinggal mereference ke object CI yang ada..

bingung??sama..hihi

Premium Drupal Themes by Adaptivethemes