Форуми / Cotonti / Support / Global $db_pages in localhost is null?

Eugene
#36958 04.02.2013 18:01

Trust, it is what I may do easily, but I don't like it.

Let me clarify: if I do

global $db, $db_pages;

On hosting - I will get normal variable, but on localhost - null.

How I can fight it?

Добавлено 1 часа спустя:

I found a reason, i guess.

during development somtimes I turn off CACHE $cfg['cache'] = FALSE;

That makes those global variable null. I don't know if that's right, but I'm glad it's solved.


Відредаговано: Eugene (04.02.2013 19:10, 12 років тому)