Jump to content

Rev - Merge pull request #72 from Vansers/master


Recommended Posts

  • 4 weeks later...
Posted

Hey Nabeel !

Long time no see...

I got an issue in admin section the headr / footer template are not loaded...

The template file "/phpvms//admin/lib/layout/footer.php" doesn't exist in /phpvms/core/classes/TemplateSet.class.php on line 231

Notice the double slash...

Posted (edited)

Ok found how to resolve it :

In admin/index.php :

Remplace line 63 to 85 by :

//load the main skin
$settings_file = SITE_ROOT . 'admin/lib/'.$tplname.'/'.$tplname.'.php';
if(file_exists($settings_file)) {
include $settings_file;
}
Template::setTemplatePath(SITE_ROOT.'admin/templates');
Template::setSkinPath(SITE_ROOT.'admin/lib/'.$tplname);

$BaseTemplate->template_path = SITE_ROOT.'admin/lib/'.$tplname;
$BaseTemplate->skin_path = SITE_ROOT.'admin/lib/'.$tplname;
$BaseTemplate->Set('title', SITE_NAME);
Template::Set('MODULE_NAV_INC', $NAVBAR);
Template::Set('MODULE_HEAD_INC', $HTMLHead);
$BaseTemplate->show('header.php');
flush();
MainController::runAllActions();
$BaseTemplate->show('footer.php');

rename header.tpl to header.php and the same for footer...

Edit : check inside header.php and footer.php there are remaining tpl sources...

Edit 2 : all modules are calling for tpl files... need to change it too

Edited by maxwaldorf
×
×
  • Create New...