2011-07-30 33 views

回答

18

您需要在您的應用程序中啓用ACL支持。該行添加到您的security.yml配置文件:

acl: 
    connection: default 

然後再次運行php app/console init:acl

+0

這並沒有爲我工作:( – hgf

+0

偉大的工程謝謝 –

0

既不適合我。這項服務實際上是不可用的...

+0

工作或沒有,如果你只是使用更新的架構..! 。「php app/console do:sch:upd --force」,FW會用ACL表更新你的數據庫,並解決問題:) – mmoreram

2

只是爲了高擡頭,acl關鍵字應該放在security關鍵字後面的行上。如果你只把

acl: 
    connection: default 

在你security.yml文件的頂部,你可能會得到這個錯誤。我正在引用它,以便人們可以通過使用錯誤搜索來進入該主題。

[Symfony\Component\Config\Exception\FileLoaderLoadException]   
    Cannot import resource "/home/jupiter/symfony/cupon/app/config/secu 
    rity.yml" from "/home/jupiter/symfony/cupon/app/config/config.yml". 
    (There is no extension able to load the configuration for "acl" 
    (in /home/jupiter/symfony/cupon/app/config/security.yml). Looked for 
    namespace "acl", found "framework", "security", "twig", "monolog", 
    "swiftmailer", "assetic", "doctrine", "sensio_framework_extra", "ci 
    udad", "usuario", "tienda", "oferta", "backend", "ideup_simple_pagi 
    nator", "web_profiler", "sensio_distribution")  


    [Symfony\Component\DependencyInjection\Exception\InvalidArgumentException] 
    There is no extension able to load the configuration for "acl" (in   
    /home/jupiter/symfony/cupon/app/config/security.yml). Looked for na   
    mespace "acl", found "framework", "security", "twig", "monolog", "s   
    wiftmailer", "assetic", "doctrine", "sensio_framework_extra", "ciud   
    ad", "usuario", "tienda", "oferta", "backend", "ideup_simple_pagina   
    tor", "web_profiler", "sensio_distribution"  

所以只要確保acl之後security關鍵字:

security: 
    acl: 
     connection: default 
相關問題