CodeIgniter with Smarty and RedBean integration