Migrated project to PHP with the Template engine Smarty