When i try and activate my custom plugin i get the error shown below but this makes no sense to me as it seems ok code wise.
Fatal error: Class 'Functionality\AlterTable\AlterTableComments' not found in C:\wamp64\www\wp-content\plugins\functionality\example.php on line 130
incase your wondering this is on line 130:
new AlterTableComments;
$a = '\namespacename\classname'; $obj = new $a;
see php.net/manual/en/language.namespaces.dynamic.php$a = '\PethouseukFunctionality\AlterTable\AlterTableComments'; $obj = new $a;