I can't get "include" or "require" function to work with one of my new file:
I have been trying to develop a module to show manufacturings brands on the main page. I started by copying all files related to featured products functionality, and understand the calling steps involved:
step 1: tpl_index_default.php -- will call the file of:
tpl_module_featured_products.php -- which is tpl_module_featured_brands.php for my new function
step 2: tpl_module_featured_brands.php will call featured_brands.php under "modules", somehow the "include" or "require" can't really work, do I need to register "featured_brands.php" with some file to make it work? I have also tried to call directly using "includes/modules/promoted_brands.php", it also does not work.
Has been working on this for a few hours, usually I am able to find answers through search, but for this one I do not even know how to search my questions... Any help would be much appreciated!


Reply With Quote
