I believe that I see the issue. You're trying to load the file /YOUR_ADMIN/includes/classes/add_forklift.php, so you'll need to use an alternate form in your auto_loader file:
Code:
<?php
$autoLoadConfig[999][] = array('autoType'=>'class',
'loadFile'=>'add_forklift.php',
'classPath'=>DIR_WS_CLASSES);
Then your observer-class file should look like:
Code:
<?php
class addForklift extends base {
// class constructor
function __construct () {
$this->attach($this, array('NOTIFIER_ADMIN_NEW_PRODUCT_ADDED'));
}
function update (&$class, $eventID, $p1, &$p2, &$p3, &$p4) {
if ($eventID == 'NOTIFIER_ADMIN_NEW_PRODUCT_ADDED') {
//-Do your special stuff here. the $p1-4 values represent the variables included on that notifier.
//-If you are using "global" variables (like the $db object), remember to declare them as global at the start of this function.
}
}
}
Bookmarks