You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If i the following scenario, which is used often in the project i work with. $template = new Template; $template->parse("Hello, {{ name.1 }}!") $template->render(array('name.1'=> 'Kennet'))
it will output "Hello, !"
so if the array key has a . in it it does not replace the tag correctly
If i remove the . from both the parse and render function call, it works as expected, but as 'name.1' is a valid name for a php array key, i think it should work the same. Or have i missed something? :)
The text was updated successfully, but these errors were encountered:
It seems that if i change the array to be build like this array('name' => ['1' =>'Kennet'])
it works as expected, but i still think the other scenario should be possible. :)
If i the following scenario, which is used often in the project i work with.
$template = new Template; $template->parse("Hello, {{ name.1 }}!") $template->render(array('name.1'=> 'Kennet'))
it will output
"Hello, !"
so if the array key has a . in it it does not replace the tag correctly
If i remove the . from both the parse and render function call, it works as expected, but as 'name.1' is a valid name for a php array key, i think it should work the same. Or have i missed something? :)
The text was updated successfully, but these errors were encountered: