本文整理汇总了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));
}
}