本文整理匯總了PHP中Head::OutputCombined方法的典型用法代碼示例。如果您正苦於以下問題:PHP Head::OutputCombined方法的具體用法?PHP Head::OutputCombined怎麽用?PHP Head::OutputCombined使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類Head
的用法示例。
在下文中一共展示了Head::OutputCombined方法的1個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: header
header("Expires: " . gmdate('D, d M Y H:i:s', time() + $config->cachehome) . ' GMT');
}
$tpl = new Template("license.xhtml");
$tpl->license = new FileLoader("http://www.gnu.org/licenses/agpl-3.0-standalone.html");
$tpl->echoExecute();
} elseif ($path_info[0] == 'css') {
// Include the JS/CSS definitions from shared config file
include '../head.php';
header("Pragma: public");
header("Content-Type: text/css; charset=UTF-8");
header("Expires: " . gmdate('D, d M Y H:i:s', strtotime('+1 year')) . ' GMT');
Head::OutputCombined($_GET['PATH_INFO'], $_GET['t']);
} elseif ($path_info[0] == 'js') {
// Include the JS/CSS definitions from shared config file
include '../head.php';
header("Pragma: public");
header("Content-Type: application/x-javascript; charset=UTF-8");
header("Expires: " . gmdate('D, d M Y H:i:s', strtotime('+1 year')) . ' GMT');
Head::OutputCombined($_GET['PATH_INFO'], $_GET['t']);
} else {
throw new Exception("Invalid Request");
}
} catch (PDOException $ex) {
header("Content-Type: application/json; charset=UTF-8");
echo json_encode(array('response' => 'error', 'error' => "Database Error: SQLSTATE:" . $ex->getCode()));
error_log((string) $ex);
} catch (Exception $ex) {
header("Content-Type: application/json; charset=UTF-8");
echo json_encode(array('response' => 'error', 'error' => (string) $ex));
}
}