php - Smarty concatenate string and variable as parameter for a modifier -


How can I add multiple strings and variables inside a parameter in a modifier in Smarty 3?

  {$ message | Modifier: 'something': 'bla' $ foo'bla ':' hello '} // returns error: unexpected "$", expected of: "}" {$ message | Modifier: 'some': 'bla'. $ Foo.'bla ':' hello '} // returns error: unexpected ".", Expect one of these: "}" {$ message | Modifier: 'something': 'bla'` $ Foo_'bla': 'hello'} // returns error: unexpected "` `, expect one of these:"} "{$ message | modifier: 'something': 'Bla' {$ foo} 'bla': 'hello'} // returns error: unexpected "{", one of these is expected: "}" {$ message | Modifier: 'Something': 'bla {$ Foo} bla ':' hello '} // parameter evaluates  

for "bla {$ foo} bla" using cat modifier Does not work because you can not use it within the parameters of another modifier < c At :

I found out that Cat > {$ message pre-meter odifier: 'something': {'bla' | cat: $ foo | cat: 'bla'}: 'hello'}


Comments

Popular posts from this blog

winforms - C# Form - Property Change -

java - Algorithm negotiation fail SSH in Jenkins -

java - Messages from .properties file do not display UTF-8 characters -