|
|
@ -2,6 +2,7 @@ |
|
|
|
|
|
|
|
|
|
|
|
namespace frontend\bootstrap; |
|
|
|
namespace frontend\bootstrap; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
use core\entities\Settings; |
|
|
|
use yii\base\BootstrapInterface; |
|
|
|
use yii\base\BootstrapInterface; |
|
|
|
use yii\base\Theme; |
|
|
|
use yii\base\Theme; |
|
|
|
use yii\helpers\ArrayHelper; |
|
|
|
use yii\helpers\ArrayHelper; |
|
|
@ -24,7 +25,9 @@ class SetUp implements BootstrapInterface |
|
|
|
], $args)); |
|
|
|
], $args)); |
|
|
|
}); |
|
|
|
}); |
|
|
|
|
|
|
|
|
|
|
|
// Connect frontend modules |
|
|
|
// Load settings |
|
|
|
|
|
|
|
$settings = ArrayHelper::map(Settings::find()->andWhere(['active' => 1])->all(), 'key', 'value', 'section'); |
|
|
|
|
|
|
|
$app->params['settings'] = $settings; |
|
|
|
|
|
|
|
|
|
|
|
// Add finish UrlRules |
|
|
|
// Add finish UrlRules |
|
|
|
$app->getUrlManager()->addRules([ |
|
|
|
$app->getUrlManager()->addRules([ |
|
|
|