Functions in different php files

Hi all,
So I’m a newbie and learning to get some stuff working on a zencart.

So I have made a function that works well in an existing php file that was part of the cart.

But when I wanted to move that function into a separate php file the call function cannot find it ?

PLEASE can some one tell me why?!!

the code is the same (cut/paste) and there are not two functions named the same

[php]<?php
function zen_image_button_x($image, $alt = ‘’, $parameters = ‘’, $sec_class = ‘’, $button_number = ‘’, $override = false) {
global $template, $current_page_base, $zco_notifier;

 $title=$alt;
 if(substr($image, 0,3)=='BC_'){$title=substr($image, 3);}

 	return az_draw_image_button($alt, $button_number, $parameters, $title);
 }

?>[/php]

Sponsor our Newsletter | Privacy Policy | Terms of Service