Search code examples
phpipb

IPB display the current year in template


I use the IPB (Invision Power Board) 4.1.12.2 and I need to display the current year in the template.

I tried the next:

<?php echo date('Y'); ?>
{{date('Y');}}
{date('Y')}

and, even:

<php>
$var = date('Y');
</php>

{$var}

but I don't have any result. Any ideas?


Solution

  • Finally I found the solution. It was easy:

    {{$var = date('Y');}}
    
    {$var}