Raid
28-01-10, 19:28
I am trying unsuccessfully to pass a new variable I've created from an external file such as productlist.php into the shopcore class.
I've amended the code in class.smarty_sw.php as follows:
require_once('class.shopcore.php');
//new
$shopcore->SetKeyphrasePage( $KeyphrasePage );
The new line is supposed to just call my new SetKeyphrasePage function to assign the value of my KeyphrasePage variable. What it actually does is totally interrupt ShopWindow functionality, so that I just get a completely blank page with no output.
Obviously, I'm interfering with a key class file with that new line.
So, if the class has been instantiated with the require_once line, how am I supposed to send it a value for a variable? :confused:
Any pointers guys? ;)
Thanks :)
I've amended the code in class.smarty_sw.php as follows:
require_once('class.shopcore.php');
//new
$shopcore->SetKeyphrasePage( $KeyphrasePage );
The new line is supposed to just call my new SetKeyphrasePage function to assign the value of my KeyphrasePage variable. What it actually does is totally interrupt ShopWindow functionality, so that I just get a completely blank page with no output.
Obviously, I'm interfering with a key class file with that new line.
So, if the class has been instantiated with the require_once line, how am I supposed to send it a value for a variable? :confused:
Any pointers guys? ;)
Thanks :)