kh99, could you givfe me an example about the second way, please?
I have a question about my example. I don't want to render my own template, I want to use the FORUMHOME template. So, could I skip and omit the vBTemplate::create and the render function?
If so, I understood that I only would need to call preRegister(), would it be enough?
For example,
Code:
$my_attr = array(
'apple' => 'red',
'banana' => 'yellow'
);
vB_Template::preRegister('FORUMHOME' => $my_attr)
And then could I access it from FORUMHOME using {vb:raw my_attr}?