raintpl3
raintpl3 copied to clipboard
The easiest Template Engine for PHP
Is it possible to do an if in a function? I have a function that returns iduser = 1 and I wanted to do an if that return.
Add support for architecture ppc64le. Exclude php 5.3, 5.4 and 5.5 This is part of the Ubuntu distribution for ppc64le. This helps us simplify testing later when distributions are re-building...
In my constructor I have the following code: $this->tpl->draw("page/header"); So my meta tags are all static. Is there any way to change these values after the draw method?
The function regex (/{function="([a-zA-Z_][a-zA-Z_0-9\:]*)(\(.*\)){0,1}"}/) doesn't match cases like: {function="NS\Test::method('123test')"}. I try this regex that seem to work: /{function="([a-zA-Z_][a-zA-Z_\\\\\\\\0-9\:]*)(\(.*\)){0,1}"}/
Same problem like this one: b464ec4 in: library/Rain/Tpl/Parser.php:387: $parsedCode .= " $value ){ $counter++; ?>"; Replace isset($newvar) with $newvar !== null
I have a select box which is updated on previous select change. I am using ajax for updating it. Thing is value is changed but it not affected in view...
#### Template ``` {$array.var|func:"Y-m-d H:i"} ``` #### Compiled code ```
#### Template ``` {$array.var|func:"Y-m-d/H:i"} ``` #### Compiled code ```
This allows more readable templates when using string arguments inside an HTML attribute.
Hi, how can I do this? `{if="$var == 0 || $var == 10"}` it happens: ``` dashboard Dashboard ``` Error: Parse error: syntax error, unexpected '(' in ...