Wednesday 17 August 2005 1:14:56 pm
I'm trying to create a module and a test run gives this message.
Error: eZModuleFunctionInfo::execute Aug 17 2005 16:10:04
No such function 'getDownloadCount' in module 's2htopten'
I defined a module.php with this:
<?php
$Module = array( "name" => "s2htopten" );
$ViewList = array();
?>
my function_definition.php has
<?php
$FunctionList = array();
$FunctionList['s2htopten'] = array('name' => 's2htopten',
'operation_types' => array('read'),
'call_method' => array('include_file' => 'extension/s2htopten/modules/s2htopten/s2htopten.php',
'class' => 's2htopten',
'method' => 'getDownloadCount' ),
'parameter_type' => 'standard',
'parameters' => array( array( 'name' => 'id',
'type' => 'integer',
'required' => true ) ) );
?>
I have a class file called s2htopten with this:
<?php
class s2htopten
{
function s2htopten(){}
function &getDownloadCount($id)
{
return array('result' => 'This better work');
}
}
?>
When I perform a test using this code I get the message seen above:
{let testingplease=fetch( 's2htopten', 'getDownloadCount', hash( 'id', 119) )}
I hope This freakin thing works : {$testingplease}
{/let}
added the following to my site.ini:
ActiveAccessExtensions[]=s2htopten
Is there something that I am missing. I've been going in circles and hope another set of eyes can quickly pick up the issue. Thanks
|