Hi,
Very new to SilverStripe and doing a module is not making sense to me. I'd like to perform a task when a new file is uploaded to the file system. I've created a new folder and within that put the _config.php and code folder. I've added a class called Test.php with :
class Test extends File {
function onAfterUpload( ) {
user_error("Test", E_USER_WARNING);
}
}
I would think when I upload a file I'd get a log message but I don't. Instead of extending file I've also extended DataExtension but with no output either. Where am I going wrong?