All right, this is really no rocket science it’s just something I needed and took me some time to figure out.
-
"fullName""`$human->first` `$human->last`"}
or more robust version:
-
"fullName"}
-
{$human->first} {$human->last}
-
All right, this is really no rocket science it’s just something I needed and took me some time to figure out.
or more robust version:
If you use the so called, German date format (day of month. month. year) you may have wondered how to achieve it with Smarty – without the leading zeroes for month.
(more…)
In the course of executing a program you need to report errors / success messages to the user. But you don’t want to mix your code with HTML, right? (A quick explanation on separating presentation from business / data logic.)
So here’s what I use:
(more…)