set(CKEditor::class, [ 'editorOptions' => ElFinder::ckeditorOptions('elfinder', []), ]); // load settings $settings = ArrayHelper::map(Settings::find()->andWhere(['active' => 1])->all(), 'key', 'value', 'section'); $app->params['settings'] = $settings; // Connect backend modules // Add finish UrlRules $app->getUrlManager()->addRules([ '<_c:[\w\-]+>' => '<_c>/index', '<_c:[\w\-]+>/' => '<_c>/view', '<_c:[\w\-]+>/<_a:[\w-]+>' => '<_c>/<_a>', '<_c:[\w\-]+>//<_a:[\w\-]+>' => '<_c>/<_a>', ]); } }