|
Smarty
WARNING: All discussion is moving to https://reddit.com/r/smarty, please go there! This forum will be closing soon. |
|
View previous topic :: View next topic |
Author |
Message |
~Chris~ Smarty n00b
Joined: 05 Jun 2015 Posts: 1
|
Posted: Fri Jun 05, 2015 9:26 pm Post subject: Smarty Caching |
|
|
Hallo zusammen,
ich bräuchte heute einmal Hilfe von jemanden der sich mit dem Caching auskennt.
Hab hier gerade das Problem mit dem Formularfeldern :
Hier wird bei unterschiedlichen Benutzern in den Selectfeldern immer der gleiche Wert vorselectiert, obwohl eigentlich ein ganz anderer Wert laut Datenbank als selected steht.
Hier mein kleiner Code Ausschnitt:
Code: |
{nocache}
<select name="{$formFlag}_leadership_skills_3_0" class="form-control">
{html_options values=$id_leadership_skills output=$titles_leadership_skills selected=$selectID_leadership_skills nocache}
</select>
{/nocache}
|
Würde mich echt über eine Rückmeldung freuen.
EDIT:
Auch ein $smarty->caching = false; am anfang in die Index, zum Test hat leider nicht geholfen. |
|
Back to top |
|
U.Tews Administrator
Joined: 22 Nov 2006 Posts: 5068 Location: Hamburg / Germany
|
Posted: Sat Jun 06, 2015 10:10 am Post subject: |
|
|
Schau Dir mit $smarty->debugging = true; erst einmal welche Daten Du wirklich für die Seöect Felder übergibst.
Am template code kann es nicht liegen.
In {html_options} ist das nocache eigentlich überfüssig da Du in einer {nocache}{/nocache} Sektion bist. |
|
Back to top |
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group
|