Multiple loadings, $this reference and libraries/plugins - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20) +--- Forum: Archived General Discussion (https://forum.codeigniter.com/forumdisplay.php?fid=21) +--- Thread: Multiple loadings, $this reference and libraries/plugins (/showthread.php?tid=2545) |
Multiple loadings, $this reference and libraries/plugins - El Forum - 08-11-2007 [eluser]Maksymus007[/eluser] Question is simple: what will happen if i call $this->load->database() twice? Fe. in autoload and in some controller's constructor? Will CI simply ignores second call and do nothing or will it rebuild database object one more time? And - is there any reference of $this object? I mean are there any other fields than those automaticaly loaded core libraries? Moreover, correct me if I'm wrong - if I want to make simple authentication I should use library (and fe. autoload it), rather than plugin? |