# Frontend Smarty HTML generation

**URL:** <https://forum.shopware.com/t/frontend-smarty-html-generation/34734>\
**Category:** Programmierung\
**Created:** [23. Februar 2016 um 18:32 UTC](https://forum.shopware.com/t/frontend-smarty-html-generation/34734 "2016-02-23T18:32:45Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![oakrudi](https://avatars.discourse-cdn.com/v4/letter/o/779978/32.png) [@oakrudi](https://forum.shopware.com/u/oakrudi)\
**Post date:** [23. Februar 2016 um 18:32 UTC](https://forum.shopware.com/t/frontend-smarty-html-generation/34734/1 "2016-02-23T18:32:45Z")

</div>

Hey again :),

Another topic to ask about sugestions, after some hours digging strange behavior.

Regarding Smarty and content translation, i’m editing a user form registration. The problem is: at .ini translation files i’ve edited some keys and added new ones, but cache file is generated with the old values for edited keys and no strings for new translation keys.

I’ve tried so far:

- Put at development mode
- Change HTTPCache settings
- manually delete cache folder content

Does anyone have some suggestion for this?

(i’ve search some similar topic but none found, sorry, German isn’t easy too 🙂 )

Thanks

---

<div class="post-metadata">

**Author:** ![DanielNogel](https://avatars.discourse-cdn.com/v4/letter/d/96bed5/32.png) [@DanielNogel](https://forum.shopware.com/u/DanielNogel)\
**Post date:** [23. Februar 2016 um 18:56 UTC](https://forum.shopware.com/t/frontend-smarty-html-generation/34734/2 "2016-02-23T18:56:11Z")

</div>

Hi,

If you are (1)&nbsp; **developing a plugin** , reinstalling the plugin might already do the trick. You can stop reading here, then&nbsp;:)

If you (2)&nbsp; **changed the INI files in the core** (which I won’t recommend), you can run this command from the CLI:&nbsp; **php bin/console sw:snippets:to:db**.

Also you can configure shopware to load the snippets from the INI file in your config.php:

```
    'snippet' => [
        'readFromDb' => true,
        'writeToDb' => true,
        'readFromIni' => false,
        'writeToIni' => false,
        'showSnippetPlaceholder' => false,
    ],

```

As you can see, you could change the „readFromDb“ and „readFromIni“ settings. But as mentioned earlier: This is only required for the&nbsp; **core INI files** &nbsp;and it is&nbsp; **not recommended** , as the next Shopware update will probably overwrite your changes.

Best regads,

Daniel&nbsp;

---

<div class="post-metadata">

**Author:** ![oakrudi](https://avatars.discourse-cdn.com/v4/letter/o/779978/32.png) [@oakrudi](https://forum.shopware.com/u/oakrudi)\
**Post date:** [24. Februar 2016 um 11:05 UTC](https://forum.shopware.com/t/frontend-smarty-html-generation/34734/3 "2016-02-24T11:05:17Z")

</div>

Hi Daniel,

In fact your answer helped me. Project had a several .INI files created with proper translations. Even&nbsp;with cleared cache translation values keep the same. As you said, s\_core\_snippets hold the values. Next I’ve deleted the snippets, ran&nbsp;&nbsp; **php bin/console sw:snippets:to:db&nbsp;** command and „voilá“ new values OK.

With snippet configs changed to get values from files it worked too.

Can you tell me what is the goal for field „dirty“ of s\_core\_snippets? Because, if i did not saw wrong, CLI command added snippet values and did not updated. Dirty field is related with updates?

&nbsp;

Thanks for the help.
