代码拉取完成,页面将自动刷新
<?php
/**
* for nginx http server
*/
error_reporting( E_ALL );
ini_set( 'display_errors', '1' );
//将出错信息输出到一个文本文件
ini_set( 'error_log', __DIR__ . '/logs/php_error_log.txt' );
//定义常量 APP_ROOT web root
define( 'APP_ROOT', __DIR__ . '/' );
define( 'APP_MODULE', __DIR__ . '/apps/' );
$di = new \Phalcon\Di\FactoryDefault();
//Registering config
$di->set( 'config', require APP_ROOT . 'config/config.php' );
$loader = new \Phalcon\Loader();
/**
* We're a registering a set of directories taken from the configuration file
*/
$loader->registerNamespaces( array(
'libraries' => APP_ROOT . 'libraries/',
'vos' => APP_ROOT . 'vos/',
'enums' => APP_ROOT . 'enums/',
'listeners' => APP_ROOT . 'listeners/',
'vendors' => APP_ROOT . 'vendors/'
));
$loader->register();
$app = new \Phalcon\Mvc\Application($di);
require APP_ROOT . 'config/services.php';//加载公共services
// Register the installed modules
$app->registerModules( array(
'admin' =>
array(
'className' => 'apps\admin\Module',
'path' => APP_ROOT . 'apps/admin/Module.php'
),
'sys' =>
array(
'className' => 'Mp\sys\Module',
'path' => APP_ROOT . 'apps/sys/Module.php'
),
'pri' =>
array(
'className' => 'Mp\pri\Module',
'path' => APP_ROOT . 'apps/pri/Module.php'
),
'appmgr' =>
array(
'className' => 'Mp\appmgr\Module',
'path' => APP_ROOT . 'apps/appmgr/Module.php'
),
'home' =>
array(
'className' => 'apps\home\Module',
'path' => APP_ROOT . 'apps/home/Module.php'
),
'common' =>
array(
'className' => 'apps\common\Module',
'path' => APP_ROOT . 'apps/common/Module.php'
),
'oa' =>
array(
'className' => 'apps\oa\Module',
'path' => APP_ROOT . 'apps/oa/Module.php'
),
'cms' =>
array(
'className' => 'apps\cms\Module',
'path' => APP_ROOT . 'apps/cms/Module.php'
),
'stock' =>
array(
'className' => 'apps\stock\Module',
'path' => APP_ROOT . 'apps/stock/Module.php'
),
'install' =>
array(
'className' => 'apps\install\Module',
'path' => APP_ROOT . 'apps/install/Module.php'
)
));
// echo __FILE__, '|', __LINE__, '<br>';
// return;
// try
// {
//echo __FILE__, '|', __LINE__;
echo $app->handle()->getContent();
// }
// catch ( \Exception $e )
// {
// echo $e->getTraceAsString();
// }
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。