Some interesting findings from web-dev land…
Uploaded my first site today that uses SWF Upload to handle large file uploads. The admin area of that site had basic Apache HTTP authentication via a .htaccess file.
SWF Upload failed with a 401 error after testing. It seems you can’t use this style of authentication with the current version of SWF Upload. Something to [...]
Been doing some bash scripting of late, been meaning to for ages. Really enjoying it too!
Anyway, today I needed to match an exact string in a directory listing (ls). To check if a volume on my Mac Book was mounted, so I could backup to it. Or any other drive for that matter. I ended [...]
You can build new variable strings inside a smarty template using the capture feature. You can concatenate variables and strings using this technique:
1234567// Pseudo code
$result->seo_url = ‘barn-project’;
// Smarty template code
{capture assign=project_url}/projects/{$result->seo_url}/{/capture}
{$project_url} /* Output: /projects/barn-project/ */
Came across this very handy Smarty Ternary modifier today:
http://www.ninjacipher.com/2007/11/24/smarty-ternary-modifier/
Thanks to NinjaCipher for that ;]
I agree they should bung this operator in the core of Smarty.