Translations and Symfony2 in database

前端 未结 3 1478
闹比i
闹比i 2021-02-02 03:00

File based translations don\'t work for me because clients need to change the texts.

So I am thinking about implementing this interface to fetch data from the database a

3条回答
  •  遇见更好的自我
    2021-02-02 03:38

    You may want to take a look into this Loader + Resource using PDO connection: https://gist.github.com/3315472

    You then only need to make it cache aware, like adding a memcache, apc, .. in between. If so, you can then disable the filecaching of the Translator itself.

提交回复
热议问题