function showFullTree() { $category = new storeCategory(null, false, false); //$categories = $category->getEcomSubcategories(); $categories = $category->getFullTree(); $ancestors = $this->category->pathToNode(); $curcat = $this->category; assign_to_template(array('categories' => $categories, 'curcat' => $curcat, 'topcat' => @$ancestors[0])); }