Symfony2 Database Translation Loader isn't executed

后端 未结 2 1583
灰色年华
灰色年华 2021-01-14 09:43

I have to implement my own translation loader. I\'ve used the tutorial on: http://blog.elendev.com/development/php/symfony/use-a-database-as-translation-provider-in-symfony-

2条回答
  •  予麋鹿
    予麋鹿 (楼主)
    2021-01-14 10:02

    http://blog.elendev.com/page/3/#post-26 or http://blog.elendev.com/development/php/symfony/use-a-database-as-translation-provider-in-symfony-2/ Another issue here is that there are no LanguageRepository class in the example. You can use this example.

    findOneBy(array('locale' => $locale));
        }
    }
    

提交回复
热议问题