Search code examples
symfony1symfony-1.4

debug toolbar not visible in symfony 1.4


I'm new to Symfony and in my company, I take over the project created by someone else using Symfony 1.4 & is not available now.

I went through jobeet tutorial and mostly comfortable with symfony but I could not load debug toolbar even environment is set to 'dev'. Debug bar is not visible even through frontend_dev.php file. Common settings are:

factories.yml

prod:
    logger:
        class:   sfNoLogger
        param:
            level:   err
            loggers: ~

dev:
    mailer:
        param:
          delivery_strategy: none

Settings.yml

prod:
  .settings:
    error_reporting:        <?php echo ((E_ALL | E_STRICT))."\n" ?>
    no_script_name:         true
    logging_enabled:        true

dev:
  .settings:
    error_reporting:        <?php echo (((E_ALL | E_STRICT)^ E_NOTICE) ^ E_DEPRECATED)."\n" ?>
    web_debug:              true
    cache:                  false
    no_script_name:         false
    etag:                   false
    compressed:             false

Frontend_dev.php file include

require_once(dirname(__FILE__).'/../config/ProjectConfiguration.class.php');

$configuration = ProjectConfiguration::getApplicationConfiguration('frontend', 'dev', true);
sfContext::createInstance($configuration)->dispatch();

Where is the error? We are using custom design defined in layout, partials and template (*Success.php) pages. Do I need to add some code to layout to enable debug bar?


Solution

  • Did you clear your cache?

    Common symfony rules (kind of #protips):

    if something doesn't change after updated one configuration file, try: php symfony cc