Symfony 1.4 Web Debug在除“home”之外的任何路由上消失

时间:2014-10-30 23:01:37

标签: php symfony-1.4

我遇到的问题是Symfony 1.4的Web调试栏只显示我是否在:

但是当我改为:

时,网络调试栏就会消失

或者该问题的任何网址:

我在前端和前端都有以下config.yml。后端:

# You can find more information about this file on the symfony website:
# http://www.symfony-project.org/reference/1_4/en/04-Settings

prod:
  .settings:
    no_script_name:         false
    logging_enabled:        false

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

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

all:
  .settings:
    # Form security secret (CSRF protection)
    #csrf_secret:            00455481226525837a73572945021b6f87587c12
    csrf_secret:            false

    # Output escaping settings
    escaping_strategy:      true
    escaping_method:        ESC_SPECIALCHARS

    # Enable the database manager
    use_database:           true


    enabled_modules: [..., sfGuardAuth,  bhLDAPAuth, sfGuardUser, sfGuardPermission]

    login_module:           bhLDAPAuth
    login_action:           signin

    secure_module:          default
    secure_action:          secure

    error404_module:        default
    error404_action:        error404

1 个答案:

答案 0 :(得分:1)

我遇到了类似的问题。

确保所有其他观看次数都使用“完整”布局...这是一个结构良好的HTML结构...带有<html>代码,<head>代码,<body>代码。 ..

它解决了我的问题。