本文整理汇总了PHP中Bootstrap::handle方法的典型用法代码示例。如果您正苦于以下问题:PHP Bootstrap::handle方法的具体用法?PHP Bootstrap::handle怎么用?PHP Bootstrap::handle使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Bootstrap
的用法示例。
在下文中一共展示了Bootstrap::handle方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: Bootstrap
<?php
define('APP_PATH', __DIR__ . '/');
require_once APP_PATH . 'Bootstrap.php';
try {
$bootstrap = new Bootstrap($argv);
$bootstrap->handle();
} catch (Phalcon\Exception $e) {
echo $e->getMessage();
}
示例2: Bootstrap
*/
$config = (include __DIR__ . '/../config/config.php');
/**
* Include Services
*/
include __DIR__ . '/../config/services.php';
/**
* Include loader
*/
include __DIR__ . '/../config/loader.php';
/**
* Include bootstrap
*/
include __DIR__ . '/../config/bootstrap.php';
/**
* Starting the application
*/
$app = new Bootstrap($di);
/**
* Incude Application
*/
include __DIR__ . '/../app.php';
/**
* Handle the request
*/
$app->handle();
} catch (Phalcon\Exception $e) {
echo $e->getMessage();
} catch (PDOException $e) {
echo $e->getMessage();
}
示例3: defined
<?php
error_reporting(E_ALL & ~E_NOTICE);
ini_set('default_charset', 'UTF-8');
try {
defined('ROOT_PATH') || define('ROOT_PATH', dirname(__FILE__));
defined('APP_PATH') || define('APP_PATH', ROOT_PATH . '/application');
require_once APP_PATH . '/Bootstrap.php';
$app = new \Bootstrap(new \Phalcon\DI\FactoryDefault());
echo $app->handle()->getContent();
} catch (\Phalcon\Exception $e) {
Bootstrap::log($e);
} catch (\PDOException $e) {
Bootstrap::log($e);
} catch (\Exception $e) {
Bootstrap::log($e);
}