PDA

View Full Version : Hook global_bootstrap_init_complete


b65ran
05-31-2013, 02:05 AM
i am trying to call some function at hook - global_bootstrap_init_complete

When this is actually invoked ?

kh99
05-31-2013, 11:18 AM
It's invoked when global.php is included, which is at the beginning of most scripts. As the name implies, most of the initialization has been done when it's called. If you want to know exactly where, it's in includes/class_bootstrap.php around line 117.

The hook is invoked inside a function, so if you're having trouble with variables you might try putting a global statement in your hook code for any variables you're trying to use.

b65ran
06-03-2013, 05:19 AM
It's invoked when global.php is included, which is at the beginning of most scripts. As the name implies, most of the initialization has been done when it's called. If you want to know exactly where, it's in includes/class_bootstrap.php around line 117.

The hook is invoked inside a function, so if you're having trouble with variables you might try putting a global statement in your hook code for any variables you're trying to use.

Thanks for your detailed reply. So when do class_bootstrap gets invoked whenever user logs in ?