Welcome Guest, Not a member yet? Register   Sign In
Multiple loadings, $this reference and libraries/plugins
#1

[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?




Theme © iAndrew 2016 - Forum software by © MyBB