Multiple loadings, $this reference and libraries/plugins

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?

Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  

  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2021 MyBB Group.