Tag: programming


Splitting a string into arrays in Smarty


This isn’t supposed to be a blog about programming, but I’m working a lot with PHP and Smarty these days, and whenever I manage to crack a problem, I get this strange feeling of acchievement. Then I come here to brag. Anyway, here goes: «How...

Include PHP-file in Smarty


I’m teaching myself PHP and Smarty these days, and today I ran across a common problem: «How do I include a PHP-file – or execute PHP-code – when using the Smarty template engine?» After banging my head against the wall for a couple of hours,...