سؤال

I have a little doubt here about not using FormHelper: I have a register form, something like that:

<form method="POST" action="/myController/saveData">
    <input type="text" name="data[Model][Field]"/>
</form>

am I right?

هل كانت مفيدة؟

المحلول

Your code looks fine, but - there's an easy way to verify for sure.

When in doubt, just use the FormHelper temporarily. For example, lets say you have complex associations or lots of fields, and you're not SURE the input names that you need (and for some reason you don't want to use the FormHelper) just write it using the FormHelper, look at the source it generates, then use that.

نصائح أخرى

Yes absolutely right, you can create forms like this!

مرخصة بموجب: CC-BY-SA مع الإسناد
لا تنتمي إلى StackOverflow
scroll top