mirror of
https://github.com/yiisoft/yii2.git
synced 2025-08-26 06:15:19 +08:00
renamed backstage → backend
This commit is contained in:
@ -10,7 +10,7 @@ if you have a project to be deployed for production soon.
|
|||||||
Thank you for using Yii 2 Advanced Application Template - an application template
|
Thank you for using Yii 2 Advanced Application Template - an application template
|
||||||
that works out-of-box and can be easily customized to fit for your needs.
|
that works out-of-box and can be easily customized to fit for your needs.
|
||||||
|
|
||||||
Yii 2 Advanced Application Template is best suitable for large projects requiring frontend and backstage separation,
|
Yii 2 Advanced Application Template is best suitable for large projects requiring frontend and backend separation,
|
||||||
deployment in different environments, configuration nesting etc.
|
deployment in different environments, configuration nesting etc.
|
||||||
|
|
||||||
|
|
||||||
@ -20,18 +20,18 @@ DIRECTORY STRUCTURE
|
|||||||
```
|
```
|
||||||
common
|
common
|
||||||
config/ contains shared configurations
|
config/ contains shared configurations
|
||||||
models/ contains model classes used in both backstage and frontend
|
models/ contains model classes used in both backend and frontend
|
||||||
console
|
console
|
||||||
config/ contains console configurations
|
config/ contains console configurations
|
||||||
controllers/ contains console controllers (commands)
|
controllers/ contains console controllers (commands)
|
||||||
migrations/ contains database migrations
|
migrations/ contains database migrations
|
||||||
models/ contains console-specific model classes
|
models/ contains console-specific model classes
|
||||||
runtime/ contains files generated during runtime
|
runtime/ contains files generated during runtime
|
||||||
backstage
|
backend
|
||||||
assets/ contains application assets such as JavaScript and CSS
|
assets/ contains application assets such as JavaScript and CSS
|
||||||
config/ contains backstage configurations
|
config/ contains backend configurations
|
||||||
controllers/ contains Web controller classes
|
controllers/ contains Web controller classes
|
||||||
models/ contains backstage-specific model classes
|
models/ contains backend-specific model classes
|
||||||
runtime/ contains files generated during runtime
|
runtime/ contains files generated during runtime
|
||||||
views/ contains view files for the Web application
|
views/ contains view files for the Web application
|
||||||
www/ contains the entry script and Web resources
|
www/ contains the entry script and Web resources
|
||||||
@ -107,7 +107,7 @@ the installed application. You only need to do these once for all.
|
|||||||
Now you should be able to access:
|
Now you should be able to access:
|
||||||
|
|
||||||
- the frontend using the URL `http://localhost/yii-advanced/frontend/www/`
|
- the frontend using the URL `http://localhost/yii-advanced/frontend/www/`
|
||||||
- the backstage using the URL `http://localhost/yii-advanced/backstage/www/`
|
- the backend using the URL `http://localhost/yii-advanced/backend/www/`
|
||||||
|
|
||||||
assuming `yii-advanced` is directly under the document root of your Web server.
|
assuming `yii-advanced` is directly under the document root of your Web server.
|
||||||
|
|
||||||
|
@ -13,7 +13,7 @@ return array(
|
|||||||
'basePath' => dirname(__DIR__),
|
'basePath' => dirname(__DIR__),
|
||||||
'vendorPath' => dirname(dirname(__DIR__)) . '/vendor',
|
'vendorPath' => dirname(dirname(__DIR__)) . '/vendor',
|
||||||
'preload' => array('log'),
|
'preload' => array('log'),
|
||||||
'controllerNamespace' => 'backstage\controllers',
|
'controllerNamespace' => 'backend\controllers',
|
||||||
'modules' => array(
|
'modules' => array(
|
||||||
),
|
),
|
||||||
'components' => array(
|
'components' => array(
|
@ -1,6 +1,6 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
namespace backstage\controllers;
|
namespace backend\controllers;
|
||||||
|
|
||||||
use Yii;
|
use Yii;
|
||||||
use yii\web\Controller;
|
use yii\web\Controller;
|
@ -25,8 +25,8 @@
|
|||||||
},
|
},
|
||||||
"extra": {
|
"extra": {
|
||||||
"yii-install-writable": [
|
"yii-install-writable": [
|
||||||
"backstage/runtime",
|
"backend/runtime",
|
||||||
"backstage/www/assets",
|
"backend/www/assets",
|
||||||
|
|
||||||
"console/runtime",
|
"console/runtime",
|
||||||
"console/migrations",
|
"console/migrations",
|
||||||
|
Reference in New Issue
Block a user