示例#1
0
                        </ul>
                    </li>
                    <li>
                        <?php 
echo Html::a(LsYii::gT('退出登录'), Url::to(['/site/logout']), ['data-method' => 'post']);
?>
                    </li>
                </ul>
            </div>
        </div>
        <div class="container bs-docs-container">
            <div class="row">
                <div class="content col-md-10" role="main" id="contents" style="height: 553px;padding: 0px 10px;">
                    <div class="container" style="height:100%;">
                        <?php 
$this->params['breadcrumbs'] = source\core\back\BackView::createBreadcrumbs();
?>
                        <?php 
echo Breadcrumbs::widget(['links' => isset($this->params['breadcrumbs']) ? $this->params['breadcrumbs'] : []]);
?>
                        <?php 
echo $content;
?>
                    </div>
                </div>    
            </div>
        </div>
        <?php 
$this->endBody();
?>
    </body>
示例#2
0
<?php

use source\LsYii;
use source\libs\Common;
use source\core\back\BackApplication;
defined('YII_DEBUG') or define('YII_DEBUG', true);
defined('YII_ENV') or define('YII_ENV', 'dev');
require dirname(__DIR__) . '/vendor/autoload.php';
require dirname(__DIR__) . '/vendor/yiisoft/yii2/Yii.php';
require dirname(__DIR__) . '/source/override.php';
require dirname(__DIR__) . '/common/config/bootstrap.php';
require dirname(__DIR__) . '/backend/config/bootstrap.php';
$config = yii\helpers\ArrayHelper::merge(require dirname(__DIR__) . '/common/config/main.php', require dirname(__DIR__) . '/common/config/main-local.php', require dirname(__DIR__) . '/backend/config/main.php', require dirname(__DIR__) . '/backend/config/main-local.php');
//检测用户是否安装了程序
Common::checkInstall($config);
$application = new BackApplication($config);
Yii::setAlias('@web', '/');
Yii::setAlias('@webroot', dirname(__DIR__));
\source\core\back\BackView::setTheme();
$application->run();