err_str = $e->get_exception(); } } $smarty = new SmartyEx(); $smarty->prepare(); // エラー文字列 $smarty->assign("ERR_STR", $err_str); /* 出力 */ $smarty->assign("MB_GOOGLE_ANALYTICS", googleAnalyticsGetImageUrl()); $smarty->assign("DISPLAY_DIR", $mobile_type); $output = $smarty->fetch('m/index.tpl'); /* 出力文字コード設定 & バッファの書き換え */ $locomill->output_ready(); echo $locomill->_k($output);