[Documentation] Accessing the PHP equivalents of smarty theme tokens, i.e. {head}
Hello.
I am having trouble finding out how I can access dynamic values in my PHP template. In the smarty version I can use tokens like {head}, {BodyClass}, {BodyID}, {asset name="Content"}, etc. I would like to access these same values provided by Vanilla in my PHP template. If that's not possible, I'd be happy to learn how to create custom tokens and go back to smarty.
All I need are some documents 
Thanks for your time in helping me with this obstacle.
- Chris
Tagged:
0
Answers
Hope this helps:
Smarty
{asset name="xxx"}PHP
$this->RenderAsset('xxx');Smarty
{$BodyID}PHP
Smarty
{$BodyClass}PHP
That's perfect, thanks Todd.
@Todd, what about:
{dashboard_link}
{discussions_link}
{activity_link}
{inbox_link}
{profile_link}
{custom_menu}
And any other Smarty(pants) tag that's been defined?