Vincinzerei
04-02-2012, 01:05 PM
i have included an external PHP File and also registered it for use on the specific template.
Anyhow its listed everytime on each page in the board as included file.
Goal would be to only have it included when the template is called.
Currently its
ob_start();
require_once('./mapper.php');
$sitecode = ob_get_contents();
ob_end_clean();
vB_Template::preRegister('mapper',array('included_ header' => $sitecode));
working well but problem is.. the file is listed as included file everywhere.
Anyhow its listed everytime on each page in the board as included file.
Goal would be to only have it included when the template is called.
Currently its
ob_start();
require_once('./mapper.php');
$sitecode = ob_get_contents();
ob_end_clean();
vB_Template::preRegister('mapper',array('included_ header' => $sitecode));
working well but problem is.. the file is listed as included file everywhere.