Adding Smarty framework