14
In going to the header method I put in an echo:
function header()
{
echo 'default.header<br>'; //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()<br>'; //farley
$cpanel->gui->header();
}
and traced through xoops_load and in there through loadModule('cpanel','system');
function loadModule($name, $dirname = null)
{
echo '1.0<br>'; //farley
if (empty($dirname)) {
echo '1.1<br>'; //farley
return false;
echo '1.2<br>'; //farley
}
echo '1.3<br>'; //farley
if (file_exists($file = XOOPS_ROOT_PATH . '/modules/' . $dirname . '/class/' . $name . '.php')) {
echo '1.4<br>'; //farley
include $file;
echo '1.5 '.ucfirst($dirname) . ucfirst($name).'<br>'; //farley
if (class_exists(ucfirst($dirname) . ucfirst($name))) {
echo '1.6<br>'; //farley
return true;
echo '1.7<br>'; //farley
}
echo '1.8<br>'; //farley
}
echo '1.9<br>'; //farley
return false;
echo '1.10<br>'; //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?