From: Steven L. <st...@tu...> - 2004-07-16 20:15:22
|
On Wed, 2004-07-14 at 05:41, Mauro Caon wrote > $GLOBALS['ALWAYS'] = array("layout", "users", "language", "fatcat", > "search", "menuman", "comments"); > > Now i have add my module in the array and always work fine, but i want know > the correct way to do this. I think that edit manually the file are not > correct. When I modified the core to reduce memory consumption I changed it to have modules only execute when they are called. The modules that are included in this array are ones that must run no matter what since other modules call their sessions. The proper way to have you module execute code on every page hit is to put it into: mod/(your_module)/inc/runtime.php If this file exists the core will included it for you on every page. -- Steven |