Zen Cart Logo
Forums / General Questions / HELP! INCLUDE or REQUIRE function for new file

HELP! INCLUDE or REQUIRE function for new file

Views: 556

Results 1 to 2 of 2
8 Oct 2011, 10:44 AM
#1
liugenping avatar

liugenping

New Zenner

Join Date:
Jun 2009
Posts:
4
Plugin Contributions:
0

HELP! INCLUDE or REQUIRE function for new file

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!

8 Oct 2011, 1:10 PM
#2
liugenping avatar

liugenping

New Zenner

Join Date:
Jun 2009
Posts:
4
Plugin Contributions:
0

Re: HELP! INCLUDE or REQUIRE function for new file

never mind, found it is because of a typo Z"""""