@cortez.connelly
To create a new Yii application, you can follow these steps:
1 2 |
composer global require "fxp/composer-asset-plugin:^1.4.2" composer create-project --prefer-dist yiisoft/yii2-app-basic basic |
1
|
cd basic |
1
|
php init
|
This will prompt you to choose an environment for your application (development, production, or testing). Choose the appropriate option and follow the prompts to complete the initialization.
1
|
php yii migrate |
This will create the necessary database tables for your application.
1
|
php yii serve |
This will start the server and your application should now be accessible at http://localhost:8080/
.
That's it! You now have a new Yii application up and running.