/www/zhongshiminan/data/project/zhongshiminan.php
array (
'name' => 'content',
'path' => '/www/zhongshiminan/app/content/',
'url' => 'https://8.219.72.69/app/content/',
'lang' => '内容管理',
'order' => 200,
'icon' => 'glyphicon glyphicon-tower layui-icon-tabs',
'entry' => 'index.php',
),
);,
);
/share/lib/php/dever/vendor/dever-main/framework/src/Dever/Loader/Project.php
}
/**
* register
*
* @return string
*/
public static function register()
{
$file = self::content();
if (empty(self::$content[DEVER_APP_NAME])) {
self::initFile($file);
} elseif (isset(self::$content[DEVER_APP_NAME])) {
self::updateFile();
}
}
/**
* updateFile
/share/lib/php/dever/boot.php
*/
if (Dever\Loader\Config::get('debug')->error) {
Dever\Output\Debug::report();
}
/*
|--------------------------------------------------------------------------
| project register
|--------------------------------------------------------------------------
*/
Dever\Loader\Project::register();
/*
|--------------------------------------------------------------------------
| route
|--------------------------------------------------------------------------
*/
$route = new Dever\Routing\Route;
/*
|--------------------------------------------------------------------------
| route run and out
|--------------------------------------------------------------------------
/www/zhongshiminan/boot.php
<?php
$_SERVER['DEVER_SERVER'] = 'localhost';
define('DEVER_PROJECT', 'zhongshiminan');
define('DEVER_PROJECT_PATH', dirname(__FILE__) . DIRECTORY_SEPARATOR);
if (defined('DEVER_PACKAGE')) {
include('dever_package/'.DEVER_PACKAGE.'/index.php');
} else {
include('dever/boot.php');
}
/www/zhongshiminan/main/index.php
<?php
define('DEVER_APP_NAME', 'main');
define('DEVER_APP_LANG', '基础设置');
define('DEVER_APP_PATH', dirname(__FILE__) . DIRECTORY_SEPARATOR);
define('DEVER_MANAGE_ORDER', 98);
define('DEVER_MANAGE_ICON', 'glyphicon glyphicon-tower layui-icon-component');
include(DEVER_APP_PATH . '../boot.php');
/www/zhongshiminan/index.php
<?php
include('main/index.php');