Hi All,
I'm attempting to search a custom table. I've followed
http://www.revo.wangba.fr/custom-package-dvd-shop/ to the letter and can't seem to get it to work.
Heres the hook snippet:
$main = array(
'package' => 'ccdata',
'packagePath' => '{core_path}components/ccdata/model/',
'class' => 'PlayPanels',
'fields' => 'District, Address', // displayed
'withFields' => 'District, Address', // where we do the search
'sortby' => 'PlayPanels.District DESC, PlayPanels.Address ASC'
);
// set the query hook declaration
$qhDeclaration = array(
'qhVersion' => '1.2', // version of queryHook - to manage futures changes
'main' => $main,
);
$hook->setQueryHook($qhDeclaration);
return true;
Does anyone know where to look for errors that may be happening? The error log is clean. If I change the name of the class PlayPanels to something else I see an error in the log:
(ERROR @ /~ccplay/index.php) Could not load class PlayPanelss
so I know PlayPanels is loading correctly, however I always get no results. I am searching for strings within the "District" column.
Any ideas?