14
In going to the header method I put in an echo:
function header()
{
echo 'default.header
'; //farley
parent::header();
When testing I never reached here. So I went back and looked at the calling
cp_functions.php function xoops_cp_header()
{
xoops_load('cpanel', 'system');
$cpanel =& XoopsSystemCpanel::getInstance();
echo 'xoops_cp_header()
'; //farley
$cpanel->gui->header();
}
and traced through xoops_load and in there through loadModule('cpanel','system');
function loadModule($name, $dirname = null)
{
echo '1.0
'; //farley
if (empty($dirname)) {
echo '1.1
'; //farley
return false;
echo '1.2
'; //farley
}
echo '1.3
'; //farley
if (file_exists($file = XOOPS_ROOT_PATH . '/modules/' . $dirname . '/class/' . $name . '.php')) {
echo '1.4
'; //farley
include $file;
echo '1.5 '.ucfirst($dirname) . ucfirst($name).'
'; //farley
if (class_exists(ucfirst($dirname) . ucfirst($name))) {
echo '1.6
'; //farley
return true;
echo '1.7
'; //farley
}
echo '1.8
'; //farley
}
echo '1.9
'; //farley
return false;
echo '1.10
'; //farley
}
Now my screen looks like this:
[b]1.0
1.3
1.4
1.5 SystemCpanel
1.8
1.9
xoops_cp_header()[/b]
Which means the class does not exist. and false is returned. I would hav expected the class to be
XoopsSystemCpanel?