php - How do I reset all of the form fields in a view when I refresh the page in CakePHP? -


प्रत्येक रीफ्रेश पर सभी फ़ील्ड को रीफ्रेश में रीसेट कैसे करें?

< Div class = "post-text" itemprop = "text">

क्या आप पूछ रहे हैं कि कैसे केक बनाने के लिए फॉर्म को फॉर्म में स्वचालित रूप से न डालें, जब किसी दृश्य के अंदर प्रपत्र सहायक का इस्तेमाल किया जाए? यदि ऐसा है, तो केक सिर्फ नियंत्रक :: डेटा के अंदर डेटा लेता है और उन फ़ील्ड को पॉप्युलेट करने के लिए फ़ील्ड नामों को मिलान करने के लिए मेल खाने वाले सरणी का इस्तेमाल करता है। इसे रोकने के लिए, बस $ -> डेटा = शून्य; आपके नियंत्रक की कार्रवाई में जो दृश्य से मेल खाती है।


Comments

Popular posts from this blog

python - Overriding the save method in Django ModelForm -

html - CSS autoheight, but fit content to height of div -

qt - How to prevent QAudioInput from automatically boosting the master volume to 100%? -