當前位置: 首頁>>代碼示例>>PHP>>正文


PHP Dispatcher::init方法代碼示例

本文整理匯總了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();
     }
 }
開發者ID:silverstripe,項目名稱:deploynaut,代碼行數:8,代碼來源:GitDispatcher.php

示例2: init

 public function init()
 {
     parent::init();
     $member = \Member::currentUser();
     if (!$member) {
         return \Security::permissionFailure();
     }
     \Requirements::css('deploynaut-reactexample/static/style.css');
 }
開發者ID:silverstripeltd,項目名稱:deploynaut-reactexample,代碼行數:9,代碼來源:Dispatcher.php

示例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);
 }
開發者ID:silverstripe,項目名稱:deploynaut,代碼行數:10,代碼來源:EnvironmentOverview.php

示例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";
?>
開發者ID:jesusgm,項目名稱:urlshortener,代碼行數:31,代碼來源:head.php


注:本文中的Dispatcher::init方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。