Hi Guys,
I think I have exact same problem as willsmelser.
I've followed documentation (only thing missing there for me is working api2 test module), and still I'm not able to find answer.
My test module code:
Code:
package Cpanel::testModule;
use strict;
use YAML::Syck;
sub testModule_init { }
sub api2_lista {
Cpanel::CPERROR{'testmodule'} = "Some test error";
return;
}
sub api2 {
my $func = shift;
my %API;
my %API = (
'lista' => {
'func' => 'api2_lista',
'engine' => 'hasharray',
}
);
return \%{ $API{$func} };
}
1;
.. placed under /usr/local/cpanel/Cpanel .
I have no idea why I'm getting error:
Code:
Could not find function 'lista' in module 'testModule'
when trying to access in FastMode.
Any ideas?