Quote:
Originally Posted by Sherif
not really.. but when plugin has option to add php code then why not use it..
|
True. One last question. If I wanted to include the variable in more than one template can I do this:
PHP Code:
vB_Template::preRegister('COTW_SOTW',array('cotw_sidemenu' => $cotw_sidemenu));
vB_Template::preRegister('other template',array('cotw_sidemenu' => $cotw_sidemenu));
vB_Template::preRegister('other template',array('cotw_sidemenu' => $cotw_sidemenu));
vB_Template::preRegister('other template',array('cotw_sidemenu' => $cotw_sidemenu));
Or is there a better way of doing it If it is for more than a couple of templates?