Home > PHP Framework > YII > body text

How to initialize yii2 advanced version

王林
Release: 2020-02-19 17:07:23
Original
2354 people have browsed it

How to initialize yii2 advanced version

To initialize the yii2 environment, you need to execute the script: (under the root directory of yii2)

./init
Copy after login

(recommended related tutorials: yii framework)

The log during the execution process is as follows:

[root@nsyong advanced]# ls
backend  common  composer.json  composer.lock  console  environments  frontend  init  init.bat  LICENSE.md  README.md  requirements.php  tests  vendor  yii.bat
[root@nsyong advanced]# ./init
Yii Application Initialization Tool v1.0
 
Which environment do you want the application to be initialized in?
 
  [0] Development
  [1] Production
 
  Your choice [0-1, or "q" to quit] 0
 
  Initialize the application under 'Development' environment? [yes|no] yes
 
  Start initialization ...
 
   generate backend/config/main-local.php
   generate backend/config/params-local.php
   generate backend/web/index.php
   generate backend/web/index-test.php
   generate frontend/config/main-local.php
   generate frontend/config/params-local.php
   generate frontend/web/index.php
   generate frontend/web/index-test.php
   generate console/config/main-local.php
   generate console/config/params-local.php
   generate yii
   generate common/config/main-local.php
   generate common/config/params-local.php
   generate cookie validation key in backend/config/main-local.php
   generate cookie validation key in frontend/config/main-local.php
      chmod 0777 backend/runtime
      chmod 0777 backend/web/assets
      chmod 0777 frontend/runtime
      chmod 0777 frontend/web/assets
      chmod 0755 yii
      chmod 0755 tests/codeception/bin/yii
 
  ... initialization completed.
 
[root@nsyong advanced]# ls
backend  common  composer.json  composer.lock  console  environments  frontend  init  init.bat  LICENSE.md  README.md  requirements.php  tests  vendor  yii  yii.bat
Copy after login

After the initialization is completed, the yii file will appear, as well as some other file initialization configurations, modification of file permissions, etc.

For more programming-related content, please pay attention to the Introduction to Programming column on the php Chinese website.

The above is the detailed content of How to initialize yii2 advanced version. For more information, please follow other related articles on the PHP Chinese website!

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!