Remove {php} tags.
Update to idiomatic phocoa and avoid a bug on php-fpm.
Update to smarty 3.