assign("jsfiles", array("static/index.js")); $sm->assign("is_index", true); header("Content-Type: text/html; charset=utf-8"); $sm->display('pages/index.html'); } catch (Exception $e) { $sm->assign("error", $e->GetMessage()); $sm->display("responses/error.html"); } ?>