diff --git a/.gitignore b/.gitignore index e6d67bc..a73b817 100644 --- a/.gitignore +++ b/.gitignore @@ -36,4 +36,4 @@ phpunit.phar /.vagrant vendor.zip /vagrant -/kcadmin/web/uploads +/backend/web/uploads diff --git a/kcadmin/assets/AppAsset.php b/backend/assets/AppAsset.php similarity index 94% rename from kcadmin/assets/AppAsset.php rename to backend/assets/AppAsset.php index d4f192e..6a7b360 100644 --- a/kcadmin/assets/AppAsset.php +++ b/backend/assets/AppAsset.php @@ -1,6 +1,6 @@ 'kcadmin', + 'id' => 'backend', 'basePath' => dirname(__DIR__), - 'controllerNamespace' => 'kcadmin\controllers', + 'controllerNamespace' => 'backend\controllers', 'bootstrap' => ['log'], 'modules' => [], 'components' => [ 'request' => [ - 'csrfParam' => '_csrf-kcadmin', + 'csrfParam' => '_csrf-backend', ], 'user' => [ 'identityClass' => 'common\models\User', 'enableAutoLogin' => true, - 'identityCookie' => ['name' => '_identity-kcadmin', 'httpOnly' => true], + 'identityCookie' => ['name' => '_identity-backend', 'httpOnly' => true], ], 'session' => [ // this is the name of the session cookie used for login on the app - 'name' => 'kcadmin', + 'name' => 'backend', ], 'log' => [ 'traceLevel' => YII_DEBUG ? 3 : 0, diff --git a/kcadmin/config/params.php b/backend/config/params.php similarity index 100% rename from kcadmin/config/params.php rename to backend/config/params.php diff --git a/kcadmin/controllers/CategoryController.php b/backend/controllers/CategoryController.php similarity index 99% rename from kcadmin/controllers/CategoryController.php rename to backend/controllers/CategoryController.php index 1ae4c9a..d77d626 100644 --- a/kcadmin/controllers/CategoryController.php +++ b/backend/controllers/CategoryController.php @@ -1,6 +1,6 @@