概述
/**
* 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/' );
use
PhalconMvcDispatcher as MvcDispatcher,
PhalconEventsManager as EventsManager,
PhalconMvcDispatcherException as DispatchException;
$di = new PhalconDIFactoryDefault();
//Registering config
$di->set( 'config', require APP_ROOT . 'config/config.php' );
$loader = new PhalconLoader();
/**
* 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 PhalconMvcApplication($di);
require APP_ROOT . 'config/services.php';//加载公共services
// Register the installed modules
$app->registerModules( array(
'admin' =>
array(
'className' => 'appsadminModule',
'path' => APP_ROOT . 'apps/admin/Module.php'
),
'sys' =>
array(
'className' => 'MpsysModule',
'path' => APP_ROOT . 'apps/sys/Module.php'
),
'pri' =>
array(
'className' => 'MppriModule',
'path' => APP_ROOT . 'apps/pri/Module.php'
),
'appmgr' =>
array(
'className' => 'MpappmgrModule',
'path' => APP_ROOT . 'apps/appmgr/Module.php'
),
'home' =>
array(
'className' => 'appshomeModule',
'path' => APP_ROOT . 'apps/home/Module.php'
),
'common' =>
array(
'className' => 'appscommonModule',
'path' => APP_ROOT . 'apps/common/Module.php'
),
'oa' =>
array(
'className' => 'appsoaModule',
'path' => APP_ROOT . 'apps/oa/Module.php'
),
'cms' =>
array(
'className' => 'appscmsModule',
'path' => APP_ROOT . 'apps/cms/Module.php'
),
'stock' =>
array(
'className' => 'appsstockModule',
'path' => APP_ROOT . 'apps/stock/Module.php'
),
'install' =>
array(
'className' => 'appsinstallModule',
'path' => APP_ROOT . 'apps/install/Module.php'
)
));
// echo __FILE__, '|', __LINE__, '
';
// return;
// try
// {
//echo __FILE__, '|', __LINE__;
echo $app->handle()->getContent();
// }
// catch ( Exception $e )
// {
// echo $e->getTraceAsString();
// }
一键复制
编辑
Web IDE
原始数据
按行查看
历史
最后
以上就是机灵荔枝为你收集整理的index.php.bak 颓废_index.php.bak的全部内容,希望文章能够帮你解决index.php.bak 颓废_index.php.bak所遇到的程序开发问题。
如果觉得靠谱客网站的内容还不错,欢迎将靠谱客网站推荐给程序员好友。
发表评论 取消回复