Migration to CodeIgniter with Smarty Template System