Welcome Guest, Not a member yet? Register   Sign In
$db['default']['autoinit'] = FALSE; help
#1

[eluser]veledrom[/eluser]
Hi,

I disabled auto-loading db just because many pages of my site don't need db connections or processing. If I need db processing, I manually do $this->load->database(); when my page needs db support.

Now, What I want to know is this:
I will enable auto-loading and set $db['default']['autoinit'] = FALSE; in configuration file. Is this going to work as same as the way above? I mean, will db be loaded when only db is needed in relevant pages (not in every single page calls), which is what I want?

Thanks
#2

[eluser]InsiteFX[/eluser]
All these questions you keep asking are right in the CodeIgniter Users Guide.

Read the section on database

CodeIgniter Users Guide - The Database Class
#3

[eluser]veledrom[/eluser]
[quote author="InsiteFX" date="1343555573"]All these questions you keep asking are right in the CodeIgniter Users Guide.

Read the section on database

CodeIgniter Users Guide - The Database Class
[/quote]

I read it before asking this question. Since english is not my first language, I sometimes need very specific answers like yes or no to confirm what understand is what I supposed to understand, nothing more. Feel free not answer my question, if you're annoyed.




Theme © iAndrew 2016 - Forum software by © MyBB