本文整理匯總了PHP中main::parse_controller方法的典型用法代碼示例。如果您正苦於以下問題:PHP main::parse_controller方法的具體用法?PHP main::parse_controller怎麽用?PHP main::parse_controller使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類main
的用法示例。
在下文中一共展示了main::parse_controller方法的1個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: die
die("Must be done over a POST request, sorry");
}
}
function view_session()
{
var_dump($_SESSION);
}
function download()
{
header("Pragma: public");
// required
header("Expires: 0");
header("Cache-Control: must-revalidate, post-check=0, pre-check=0");
header("Cache-Control: private", false);
// required for certain browsers
header("Content-Type: application/fluidia");
header("Content-Disposition: attachment; filename=\"fluidia-save.fld\";");
header("Content-Transfer-Encoding: binary");
//ob_start(); echo contents, then header content-length
//header("Content-Length: " . filesize($parsed_url['localpath']));
$key = count($_SESSION['fluidia_object']) - 1;
var_dump($_SESSION['fluidia_object'][$key]);
exit;
}
}
$main = new main();
// First things first, what controller function are we running on this call?
$main->parse_controller();
// Run
$main->go();
//var_dump($main);