I run the following code line:
if (!$this->modx->loadClass('advsearch.advSearchResults',$this->config['modelPath'],true,true)) {
$this->modx->log(modX::LOG_LEVEL_ERROR,'[AdvSearch] Could not load advSearchResults class.');
return false;
}
On Linux server I got the following error:
[2011-07-07 21:47:07] (ERROR @ /index.php) Could not load class: advSearchResults from advsearch.advsearchresults.
[2011-07-07 21:47:07] (ERROR @ /index.php) [AdvSearch] Could not load advSearchResults class.
Why my class name adv
Search
Results (camelCase) is replaced as advsearchresults ?
is a lowercase name mandatory for the name of class name ?
I don’t find any issue regarding this in MODx tracker. Does it exist a quick fix ?
my class file is advsearch/advSearchResults.class.php
loadClass (line 398)
Load a class by fully qualified name.
The $fqn should in the format:
dir_a.dir_b.dir_c.classname
which will translate to:
XPDO_CORE_PATH/om/dir_a/dir_b/dir_c/dbtype/classname.class.php
return: The actual classname if successful, or false if not.
access: public
string|boolean loadClass (string $fqn, [ $path = ’’], [ $ignorePkg = false], [ $transient = false])
string $fqn: The fully-qualified name of the class to load.
$path
$ignorePkg
$transient