您好,登錄后才能下訂單哦!
這篇文章主要介紹yii2高級版的初始化方法,文中介紹的非常詳細,具有一定的參考價值,感興趣的小伙伴們一定要看完!
初始化yii2環境需要執行腳本:(在yii2的根目錄下面)
./init
執行過程中的log如下:
[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
初始化完成后,會出現yii文件,以及其他的一些文件初始化配置,以及修改文件權限等等。
以上是“yii2高級版的初始化方法”這篇文章的所有內容,感謝各位的閱讀!希望分享的內容對大家有幫助,更多相關知識,歡迎關注億速云行業資訊頻道!
免責聲明:本站發布的內容(圖片、視頻和文字)以原創、轉載和分享為主,文章觀點不代表本網站立場,如果涉及侵權請聯系站長郵箱:is@yisu.com進行舉報,并提供相關證據,一經查實,將立刻刪除涉嫌侵權內容。