当前位置: 首页>>代码示例>>PHP>>正文


PHP Application::dispatch方法代码示例

本文整理汇总了PHP中Application::dispatch方法的典型用法代码示例。如果您正苦于以下问题:PHP Application::dispatch方法的具体用法?PHP Application::dispatch怎么用?PHP Application::dispatch使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在Application的用法示例。


在下文中一共展示了Application::dispatch方法的8个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: dispatch

 public function dispatch()
 {
     // Check if the extra tables are there
     $this->checkInstallation();
     // Auto Unpublish past events
     $this->auto_unpublish = $this->getParams()->get('global.config.unpublish_past_events', 1);
     $this->app->event->dispatcher->connect('item:saved', array($this, 'afterSave'));
     // register controller
     if ($template = $this->getTemplate()) {
         $this->app->path->register($template->getPath() . '/../../controllers', 'controllers');
     }
     // register Joomla sef event (requires zlframework/sefparseroute)
     $this->app->event->dispatcher->connect('application:sefbuildroute', array($this, 'sefBuildRoute'));
     // register sh404sef event
     $this->app->event->dispatcher->connect('application:sh404sef', array($this, 'sh404Sef'));
     // register yoonique404sef event
     $this->app->event->dispatcher->connect('application:yoonique404sef', array($this, 'yoonique404Sef'));
     parent::dispatch();
 }
开发者ID:knigherrant,项目名称:decopatio,代码行数:19,代码来源:application.php

示例2: Application

<?php

/**
 * @package Exemplo MVC com PHP
 */
ini_set('display_errors', 1);
error_reporting(E_ALL);
require_once 'lib/Application.php';
date_default_timezone_set("Brazil/East");
$o_Application = new Application();
$o_Application->dispatch();
?>


<!DOCTYPE html>
<html lang="pt-BR">
    <head>
        <meta charset="utf-8" />
        <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
        <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0">

        <!-- Site Properties -->
        <title>Homepage - Semantic</title>
        <link rel="stylesheet" type="text/css" href="template/css/semantic.min.css">

        <style type="text/css">

            .hidden.menu {
                display: none;
            }
开发者ID:jorge911,项目名称:ufpa_pdti,代码行数:30,代码来源:index.php

示例3: dispatch

 /**
  * Dispatch
  */
 public function dispatch()
 {
     $this->app->jbdebug->mark('application::dispatch::before');
     parent::dispatch();
     $this->app->jbdebug->mark('application::dispatch::after');
 }
开发者ID:JBZoo,项目名称:JBZoo-CCK-Free,代码行数:9,代码来源:application.php

示例4: Application

<?php

define('DACCESS', 1);
require 'framework.php';
$app = new Application();
$app->route();
$app->dispatch();
$app->render();
开发者ID:walney,项目名称:SlaveFramework,代码行数:8,代码来源:index.php

示例5: realpath

<?php

require_once realpath(dirname(__FILE__) . DIRECTORY_SEPARATOR . '..' . DIRECTORY_SEPARATOR) . DIRECTORY_SEPARATOR . 'app' . DIRECTORY_SEPARATOR . 'init.php';
$request = new Request();
Application::dispatch($request);
exit;
开发者ID:nosnebilla,项目名称:default-hub,代码行数:6,代码来源:dispatcher.php

示例6: isset

<?php

require_once 'config.php';
require_once 'lib/ClassesLoader.php';
ClassesLoader::Register();
require_once 'funcoes.php';
require_once 'webtools/fpdf17/fpdf.php';
$modulo = isset($_GET['modulo']) ? ucwords($_GET['modulo']) : NULL;
$acao = isset($_GET['acao']) ? $_GET['acao'] : NULL;
try {
    $application = new Application();
    $application->dispatch($modulo, $acao);
} catch (Exception $e) {
    setMensagem("error", $e->getMessage());
    header("Location: ?modulo=erro");
}
开发者ID:saulor,项目名称:cpbquirophp,代码行数:16,代码来源:index.php

示例7: Application

require 'controllers/BaseController.php';
require 'controllers/ApontamentosController.php';
require 'controllers/AtividadesController.php';
require 'controllers/CategoriasController.php';
require 'controllers/ChamadosController.php';
require 'controllers/EmpresasController.php';
require 'controllers/IndexController.php';
require 'controllers/ModulosController.php';
require 'controllers/ParametrosController.php';
require 'controllers/PerfisController.php';
require 'controllers/PerfisPermissoesController.php';
require 'controllers/PrioridadesController.php';
require 'controllers/SituacoesController.php';
require 'controllers/TiposAmbientesController.php';
require 'controllers/TiposAtividadesController.php';
require 'controllers/TiposProdutosController.php';
require 'controllers/TiposSistemasController.php';
require 'controllers/UsuariosController.php';
require 'vendor/autoload.php';
header('Content-Type: text/html; charset=utf-8');
date_default_timezone_set('America/Sao_Paulo');
ini_set('session.cookie_lifetime', '360000');
//100 hours
ini_set('default_charset', 'UTF-8');
ini_set('file_uploads', 'On');
ini_set('display_errors', 'Off');
error_reporting(E_ALL & ~E_STRICT);
session_start();
$application = new Application();
$application->dispatch();
开发者ID:mmlcasag,项目名称:basisit,代码行数:30,代码来源:index.php

示例8: define

<?php

/*
* @copyright Copyright (C) 2005-2010 Keyboard Monkeys Ltd. http://www.kb-m.com
* @license http://creativecommons.org/licenses/BSD/ BSD License
* @author Keyboard Monkey Ltd
* @since  CommunityID 0.9
* @package CommunityID
* @packager Keyboard Monkeys
*/
define('APP_DIR', dirname(__FILE__));
// change this if separating app code from web-accessible files
define('WEB_DIR', APP_DIR);
require 'Application.php';
Application::setIncludePath();
Application::setAutoLoader();
Application::setConfig();
Application::setErrorReporting();
Application::setLogger();
Application::logRequest();
Application::setDatabase();
Application::setSession();
Application::setAcl();
Application::setI18N();
Application::setLayout();
Application::setFrontController();
Application::dispatch();
开发者ID:sdgdsffdsfff,项目名称:auth-center,代码行数:27,代码来源:index.php


注:本文中的Application::dispatch方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。