Hey Guys,
I am a fresh install of ZC 1.3.9b installed on my local computer being served by XAMPP using PHP 5.3.1, MySQL 5.3 and Apache 2.2.14 (all of which is probably not important).
I have a section on my header where I want to create a link that says "Checkout out (blah) category!" where (blah) is the name, and the name, and corresponding link, to the category listed on the top in the category box.
The code in the category sidebox uses the $box_categories_array variable which holds this information which is created in the includes/modules/sideboxes/categories.php file:
What is the proper convention to require this file in my tpl_header.php file. I am looking for one line of php that looks something likePHP Code:$main_category_tree = new category_tree;
$row = 0;
$box_categories_array = array();
// don't build a tree when no categories
$check_categories = $db->Execute("select categories_id from " . TABLE_CATEGORIES . " where categories_status=1 limit 1");
if ($check_categories->RecordCount() > 0) {
$box_categories_array = $main_category_tree->zen_category_tree();
}
...
thanksPHP Code:require(*some magic ZC function calls with constants*);


).


