Prechádzať zdrojové kódy

Fixes #624: renamed www to web.

Qiang Xue 12 rokov pred
rodič
commit
949c567387

+ 2 - 2
README.md

@@ -24,7 +24,7 @@ DIRECTORY STRUCTURE
       runtime/            contains files generated during runtime
       vendor/             contains dependent 3rd-party packages
       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
 ~~~
 
-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.
 
 

+ 1 - 1
composer.json

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

+ 2 - 2
config/AppAsset.php

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

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

@@ -11,5 +11,5 @@ modules:
     enabled: [Filesystem, TestHelper, Yii2]
     config:
         Yii2:
-            entryScript: 'www/index-test.php'
+            entryScript: 'web/index-test.php'
             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