Skip to content

Howto - php smarty hints

Just while you have to work with smarty, you need some small "how can i do this" hints.

  • php: if (isa($object, 'myClass') | smarty: {if $object|isa:'myClass'}
  • php: vardump($item) | smary: {$item|@vardump} - use "@" to make smarty run the modifier against the whole $item, otherwise it would use it for each element.
  • php: printr($item) | smary: {$item|@printr} - use "@" to make smarty run the modifier against the whole $item, otherwise it would use it for each element.

smarty.net functions

Translate to de es fr it pt ja