Quote:
Originally Posted by Sherif
Try This
Plugin Hook: parse_templates
Code:
ob_start();
require_once('test.php');
$php_include = ob_get_contents();
ob_end_clean();
$templater = vB_Template::create('COTW_SIDEMENU');
$templater->register('php_include', $php_include);
$cotw_sidemenu = $templater->render();
vB_Template::preRegister('COTW_SOTW',array('cotw_sidemenu' => $cotw_sidemenu));
To be fair, why you are including external file from outside. just write php code in plugins or make functions.
|
HURRRAAYYYYYY!!!! FOR SHERRRIFFFFFF Needless to say I will NOT shoot the sherif
Thanks a bunch for your help. Also thanks to our advisor kh99, without your guys help I would have probably exploded my server or something. Thanks again guys. I'm so stoked this works now.
About your question I guess I have not been too familiar yet with vb plugin system as you can tell; as a noob still I feel more comfortable using files. I feel I have more control and organization with files than plugins. Performance wise does it have any impact choosing one over the other??