In the previous post we went through the features provided by FireSymfony. In this post we are going to see how to install the Firefox Add On and the symfony plugin.

Plugin Installation

To install the symfony plugin go to your project root folder and type in the command line:

> php symfony plugin:install firesymfonyPlugin

If you're used to install plugins using svn externals, you can obtain the plugin code from here

Then edit your factories.yml file and enable FireSymfony under the all label like this:

all:
  logger:
     class: sfAggregateLogger
     param:
       level: debug
       loggers:
         sf_web_debug:
           class: sfWebDebugLogger
           param:
             level: debug
             condition:       %SF_WEB_DEBUG%
             xdebug_logging:  true
             web_debug_class: fsWebDebugForSf12
         sf_file_debug:
           class: sfFileLogger
           param:
             level: debug
             file: %SF_LOG_DIR%/%SF_APP%_%SF_ENVIRONMENT%.log

If you prefer you can configure FireSymfony for a specific environment.

The important line there is the web_debug_class configuration.

The on your databases.yml file and for the environment which needs debugging (usually will be dev) be sure that you setup the database class name as this:

classname: DebugPDO

In this way FireSymfony will be able to collect the query logs.

Add On Installation:

  1. Open Firefox and go to the Tools menu and click on Add-ons
  2. Select the Get Add-ons tab
  3. Enter FireSymfony in the search box and press enter
  4. Select and Install the add-on
  5. Restart Firefox

If you like to install the add on manually you can download it from here

If you point Firefox to myproject/fronted_dev.php it should show symfony debug information inside Firebug in the symfony tab. If you see the data there it means you succeed in the installation.

Support:

If you had problems installing FireSymfony you can ask for help in the mailing list

For reporting bugs please go to the Google Code project page if the issue hasn't been reported yet, please file it there.

You can find all those links together at the extension website which we plan to improve soon.

Thanks for reading so far and I hope to read your comments and suggestions here or at the FireSymfony mailing list.

Published in #Plugins