News 
31 July 2011

RainTPL 2.6.5 bug fix for 2.6.4

The version 2.6.4 has been tested it and used it in many projects. Version 2.6.5 just fix 2 minor bugs of the previous version, here are the changes:

  • Bug fix: variable assignment ereditable in included template, the assign operator, allows to init and assign variables inside the templates. Before the assignment was visible only inside the template where the variables were assigned, because {$num=1} in the compiled PHP template was translated to <?php $num=1; ?>.
    This fix translate {$=1} to <?php $this->var['num']=$num=1; ?>, in this way the variables are visible in all the parent and included templates of the current loaded template.

    Thanks to Thomas for pointing out at this bug

  • Bug fix: static method modifiers, now the modifier work propertly also with static methods, as following example:
    {$variable|stringManager::cut_string:10, 2}

    Thanks to Silverus for pointing out at this bug

Click here to download RainTPL 2.6.5

Rain Tpl

Easy PHP template engine which compiles templates.

Join the Google Group
rain google group