Module integration MagicPHP and the Smarty Template Engine