Fixes #624: renamed www to web.
This commit is contained in:
parent
636a85a6f5
commit
949c567387
@ -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.
|
||||
|
||||
|
||||
|
@ -26,7 +26,7 @@
|
||||
"extra": {
|
||||
"yii-install-writable": [
|
||||
"runtime",
|
||||
"www/assets"
|
||||
"web/assets"
|
||||
],
|
||||
"yii-install-executable": [
|
||||
"yii"
|
||||
|
@ -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',
|
||||
);
|
||||
|
@ -11,5 +11,5 @@ modules:
|
||||
enabled: [Filesystem, TestHelper, Yii2]
|
||||
config:
|
||||
Yii2:
|
||||
entryScript: 'www/index-test.php'
|
||||
entryScript: 'web/index-test.php'
|
||||
url: 'http://localhost/'
|
||||
|
Loading…
x
Reference in New Issue
Block a user