![]() |
Showing variable from template:headinclude from hook:global_start
How can I show up a variable in template headinclude from the plugin global_start? I do not have created any custom template like my_custom_template shown in the code. Please advice me how can I put the variable $car in headinclude. Thanks!
plugin global start $car ='Porsche'; $templater = vB_Template::create('my_custom_template'); $templater->register('car', $car); $car = $templater->render(); template: headinclude (...) {vb:raw car} (...) Why doesn't it work? Thanks! |
Try this in the plugin:
PHP Code:
|
That works great!!! Thank you very much!
|
You're welcome. :)
|
All times are GMT. The time now is 05:23 AM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|