本文整理匯總了PHP中Dispatcher::init方法的典型用法代碼示例。如果您正苦於以下問題:PHP Dispatcher::init方法的具體用法?PHP Dispatcher::init怎麽用?PHP Dispatcher::init使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類Dispatcher
的用法示例。
在下文中一共展示了Dispatcher::init方法的4個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: init
public function init()
{
parent::init();
$this->project = $this->getCurrentProject();
if (!$this->project) {
return $this->project404Response();
}
}
示例2: init
public function init()
{
parent::init();
$member = \Member::currentUser();
if (!$member) {
return \Security::permissionFailure();
}
\Requirements::css('deploynaut-reactexample/static/style.css');
}
示例3: init
public function init()
{
parent::init();
$this->project = $this->getCurrentProject();
if (!$this->project) {
return $this->project404Response();
}
// Performs canView permission check by limiting visible projects
$this->environment = $this->getCurrentEnvironment($this->project);
}
示例4:
<!DOCTYPE html>
<html>
<head>
<?php
require_once "classes/dispatcher.php";
Dispatcher::init();
require_once "classes/usuario.php";
Usuario::checkLogin();
?>
<title>URL Shortener</title>
<meta charset="utf-8" />
<script src="jQuery/jquery-1.10.1.min.js"></script>
<script src="jQuery/jquery-1.9.0.min.js"></script>
<!--Inlude fancybox plugin -->
<script type="text/javascript" src="jQuery/fancyBox/lib/jquery.mousewheel-3.0.6.pack.js"></script>
<script src="jQuery/fancyBox/source/jquery.fancybox.js"></script>
<script src="jQuery/fancyBox/source/jquery.fancybox.pack.js"></script>
<script type="text/javascript" src="jQuery/fancyBox/source/helpers/jquery.fancybox-buttons.js?v=1.0.5"></script>
<script type="text/javascript" src="js/global.js"></script>
<link rel="stylesheet" type="text/css" href="jQuery/fancyBox/source/jquery.fancybox.css" />
<link rel="stylesheet" type="text/css" href="jQuery/fancyBox/source/helpers/jquery.fancybox-buttons.css?v=1.0.5" />
<link rel="stylesheet" type="text/css" href="css/font-awesome.css" />
<link rel="stylesheet" type="text/css" href="css/global.css" />
</head>
<body>
<h1><a href="index.php">URL Shortener</a></h1>
<?php
include_once "menu.php";
?>