From: Eloi G. <el...@re...> - 2003-10-17 04:10:07
|
Steven Levin wrote: >Well it was not just the PHPWS_Text class, all the core classes have >been seperated. The runtime.php file runs instead of the index.php file >when the module is not called. Both would be included if the module was >called. The core is now setup to only include the module that is >currently being requested. The runtime.php file allows for modules not >running to still show content. I had not set it up do be authorized by >allow_view, but I will, just forgot about it. > > > I'm still having trouble understanding why we'd need a runtime.php in addition to the index.php. Either way a file will still get called up. In certain of my modules, the index.php code contains some if-else statements that check $GLOBALS['module'] to see which module has dominance and act accordingly. How does offloading that code to a different file give us performance benefits? Is it just that both would end up being smaller files? After 16 hours of sleep, I'm feeling so much better... Eloi |