Guest Posted December 22, 2015 Posted December 22, 2015 I'm looking at the current suggested placement of the following code at the bottom of the app_top file: require(DIR_FS_CATALOG . 'includes/classes/hooks.php'); $OSCOM_Hooks = new hooks('shop'); I am looking at creating a few addons that would be best suited to run higher up in app_top; however, unable to use hooks unless this is moved higher up the code. I'll go ahead and get started with testing. If anyone knows of any known issues in doing so, please post. Thanks, M
Guest Posted December 23, 2015 Posted December 23, 2015 In my testing, I was successfully able to move the initiation of hooks to immediate below the following $configuration_query = tep_db_query('select configuration_key as cfgKey, configuration_value as cfgValue from ' . TABLE_CONFIGURATION); while ($configuration = tep_db_fetch_array($configuration_query)) { define($configuration['cfgKey'], $configuration['cfgValue']); } This provides the most access to all system variables before they are defined by code that immediately follows. Off topic, HOOKS RULES!!! :thumbsup:
tgely Posted December 23, 2015 Posted December 23, 2015 Do you want redefine something or what? osCommerce based shop owner with minimal design and focused on background works. When the less is more.Email managment with tracking pixel, package managment for shipping, stock management, warehouse managment with bar code reader, parcel shops management on 3000 pickup points without local store.
Guest Posted December 23, 2015 Posted December 23, 2015 Yes. I am working on implementing a solution to sanitize $_GET and $_POST with settings stored in the db. This requires that hooks be implemented much closer to the start of the application_top file. In order to register a hook, general.php and html_output.php need to be called shortly afterward. So far in my testing, it works properly and allows for maximum implementation possibilities
Recommended Posts
Archived
This topic is now archived and is closed to further replies.