Symfony 1.3 Web Application Development
上QQ阅读APP看书,第一时间看更新

Installing Symfony

There are three ways in which you can install and set up Symfony on your local system:

  • Using the sandbox
  • Checking out of subversion
  • Installing via PEAR

Version 1.3 was not released at the time of the writing this book, so I cannot provide you with the exact links to install it. However, I can point you in the direction of some more useful documentation located on the Symfony web site at http://www.symfony-project.org/installation and http://www.symfony-project.org/getting-started/1_2/en/.

The fastest way of setting up Symfony, especially for the first time, is to download the sandbox. The sandbox works straight out of box and contains the basic application already created for you.

The sandbox can be downloaded from http://www.symfony-project.org/get/symfony-stable.tgz 0.

If you follow the PEAR route, you can use that installation to create your own sandbox at http://www.symfony-project.org/blog/2009/06/10/new-in-symfony-1-3-project-creation-customization.

Note

For developing with Version 1.3, I used two methods to obtain a sandbox.

Checked out Symfony from SVN into a temporary folder:

>mkdir symfony_1.3 && cd symfony_1.3 >svn co http://svn.symfony-project.com/branches/1.3

Next I used the Symfony create_sandbox script to create a zipped up sandbox:

>data/bin/create_sandbox.sh

After running the command you will see the package being build. Afterwards, you will see two new files in the current folder, sf_sandbox.tgz and sf_sandbox.zip. You can extract either one and rename the folder from sf_sandbox to milkshake. Afterwards you can place this folder in your workspace folder.