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