Fixes #624: renamed www to web.

This commit is contained in:
Qiang Xue 2013-07-25 07:57:49 -04:00
parent 636a85a6f5
commit 949c567387
8 changed files with 6 additions and 6 deletions

View File

@ -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.

View File

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

View File

@ -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',
);

View File

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