|
|
|
@ -2,6 +2,7 @@
|
|
|
|
|
|
|
|
|
|
namespace frontend\bootstrap; |
|
|
|
|
|
|
|
|
|
use core\entities\Settings; |
|
|
|
|
use yii\base\BootstrapInterface; |
|
|
|
|
use yii\base\Theme; |
|
|
|
|
use yii\helpers\ArrayHelper; |
|
|
|
@ -24,7 +25,9 @@ class SetUp implements BootstrapInterface
|
|
|
|
|
], $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 |
|
|
|
|
$app->getUrlManager()->addRules([ |
|
|
|
|