Hello
I have been working on the moneybookers module but hit a snag
I have created a variable in the class in the main module file as so...
Code:
class moneybookers_gateway {
var $code, $title, $description, $orders_table, $enabled;
// class constructor
function moneybookers_gateway() {
etc etc etc ...
$this->orders_table = DB_PREFIX . 'mbookers_gway_orders';
}
using "$this->orders_table" within the same file works ok with no issues. However, I need to access this variable in another independent file but have been stymied so far.
The following debug code throws out a blank.
Code:
// load moneybookers module
require(DIR_WS_CLASSES . 'payment.php');
$moneybookers_gateway = new payment('moneybookers_gateway');
echo $moneybookers_gateway->orders_table;
Configure.php is loaded earlier so I know "DIR_WS_CLASSES" is defined.
Can anyone please give a pointer?
Thanks
Bookmarks