Archives


Master Symfony2 fundamentals

Be trained by SensioLabs experts (2 to 6 day sessions -- French or English).
trainings.sensiolabs.com

Symfony hosting done right

ServerGrove, outstanding support at the right price for your Symfony hosting needs.
servergrove.com

Discover the SensioLabs Support

Access to the SensioLabs Competency Center for an exclusive and tailor-made support on Symfony
sensiolabs.com

gravatar
FireSymfony: Installing and Configuring the Plugin
by Alvaro Videla – September 09, 2009 – 8 comments

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.

Comments RSS

  • gravatar
    #1 jeremy said on the 2009/09/09 at 15:58
    DebugPDO looks like it is for Propel only. Is there an equivalent file for Doctrine?
  • gravatar
    #2 Massimiliano Arione said on the 2009/09/09 at 17:56
    You're missing one step: after installing the plugin, you should enable it in config/ProjectConfiguration.class.php, unless you use blacklist options for plugins (that's not recommended)
  • gravatar
    #3 J_Wesker said on the 2009/09/09 at 17:56
    Ok! It's pretty cool but doesn't work when being redirected :/ the question is now how to uninstall it? I've tried to do php symfony plugin:uninstall firesymfonyPlugin but it just says it is not installed but the files are still there :S
  • gravatar
    #4 alvaro said on the 2009/09/09 at 18:00
    @jeremy Please ask at the symfony users mailing list about Doctrine, I don't have experience with it

    @Massimiliano thanks for the tip

    @J_Wesker I will take a look into that issue
  • gravatar
    #5 ornicar said on the 2009/09/09 at 18:30
    Little typo in factories sample:

    web_debug_class: fsWebDebugForSf12
  • gravatar
    #6 A. Botero said on the 2009/09/10 at 15:37
    @jeremy DebugPDO works with Propel and Doctrine
  • gravatar
    #7 jayson said on the 2009/09/11 at 05:46
    @jeremy, there is no need to set DebugPDO for doctrine, the log will be enabled just like symfony logging, by set sf_debug & sf_logging_enabled to true.
  • gravatar
    #8 netouent said on the 2009/09/14 at 11:45
    Realy interesting, work perfectly with ff 3.5.3

    But database query logger may be improved to replace :p1, :p2, ... with their value to be realy useful