- Local Environment: Windows + XAMPP
- Download symfony: Official Website
Environment Configuration:
1. decompress the symfony folder to XAMPP/htdocs after the download (it is best to change the folder name to lower case if possible)
2. symfony2 comes with a Server Runtime Environment detection script to ensure that your server and PHP parameters are correct. You can access this page through the following address:
Http: // localhost/symfony/web/config. php
3. You can skip the related questions and click "bypass configuration and go to the welcome page" to access the welcome page of symfony:
Http: // localhost/symfony/web/app_dev.php/
Create Bundle:
1. Open the XAMPP shell, which is in the XAMPP folder by default, and enter the symfony folder. For example, the command to enter is:
CD htdocs/symfony
2. Create a bundle command:
Php app/console generate: bundle -- namespace = Acme/hellobundle -- format = yml
This command will create a hellobundle In the Acme namespace, And the next operation will follow the prompts. Generally, the default value is used.
Notes for building the symfony2 Environment