Explorar o código

Fixes #624: renamed www to web.

Qiang Xue %!s(int64=12) %!d(string=hai) anos
pai
achega
949c567387
Modificáronse 8 ficheiros con 6 adicións e 6 borrados
  1. 2 2
      README.md
  2. 1 1
      composer.json
  3. 2 2
      config/AppAsset.php
  4. 1 1
      tests/functional.suite.dist.yml
  5. 0 0
      web/assets/.gitignore
  6. 0 0
      web/css/site.css
  7. 0 0
      web/index-test.php
  8. 0 0
      web/index.php

+ 2 - 2
README.md

@@ -24,7 +24,7 @@ DIRECTORY STRUCTURE
       runtime/            contains files generated during runtime
       runtime/            contains files generated during runtime
       vendor/             contains dependent 3rd-party packages
       vendor/             contains dependent 3rd-party packages
       views/              contains view files for the Web application
       views/              contains view files for the Web application
-      www/                contains the entry script and Web resources
+      web/                contains the entry script and Web resources
 
 
 
 
 
 
@@ -53,7 +53,7 @@ You can then install the Bootstrap Application using the following command:
 php composer.phar create-project --stability=dev yiisoft/yii2-app-basic yii-basic
 php composer.phar create-project --stability=dev yiisoft/yii2-app-basic yii-basic
 ~~~
 ~~~
 
 
-Now you should be able to access the application using the URL `http://localhost/yii-basic/www/`,
+Now you should be able to access the application using the URL `http://localhost/yii-basic/web/`,
 assuming `yii-basic` is directly under the document root of your Web server.
 assuming `yii-basic` is directly under the document root of your Web server.
 
 
 
 

+ 1 - 1
composer.json

@@ -26,7 +26,7 @@
 	"extra": {
 	"extra": {
 		"yii-install-writable": [
 		"yii-install-writable": [
 			"runtime",
 			"runtime",
-			"www/assets"
+			"web/assets"
 		],
 		],
 		"yii-install-executable": [
 		"yii-install-executable": [
 			"yii"
 			"yii"

+ 2 - 2
config/AppAsset.php

@@ -15,8 +15,8 @@ use yii\web\AssetBundle;
  */
  */
 class AppAsset extends AssetBundle
 class AppAsset extends AssetBundle
 {
 {
-	public $basePath = '@wwwroot';
-	public $baseUrl = '@www';
+	public $basePath = '@webroot';
+	public $baseUrl = '@web';
 	public $css = array(
 	public $css = array(
 		'css/site.css',
 		'css/site.css',
 	);
 	);

+ 1 - 1
tests/functional.suite.dist.yml

@@ -11,5 +11,5 @@ modules:
     enabled: [Filesystem, TestHelper, Yii2]
     enabled: [Filesystem, TestHelper, Yii2]
     config:
     config:
         Yii2:
         Yii2:
-            entryScript: 'www/index-test.php'
+            entryScript: 'web/index-test.php'
             url: 'http://localhost/'
             url: 'http://localhost/'

www/assets/.gitignore → web/assets/.gitignore


www/css/site.css → web/css/site.css


www/index-test.php → web/index-test.php


www/index.php → web/index.php