hi im currently using ADV search but I never make it working
Im using a custom hook
and this is the code
<?php
$main = array(
'package' => "modx_tblbook",
'packagePath' => "{core_path}components/modx_tblbook/model/",
'class' => "Tblbook",
'fields' => "brand_name, company", // displayed
'withFields' => "brand_name, company"// where we do the search
);
// set the query hook declaration
$qhDeclaration = array(
'qhVersion' => '1.2', // version of queryHook - to manage futures changes
'main' => $main,
);
$hook->setQueryHook($qhDeclaration);
return true;
it result nothing
what should I do