Reputation: 10393
Is it possible to create a form using form helpers without having an object to link the form to? I want to just design a form and have it render, but I don't have an object to point to yet. Or, is there a simple way to create a dummy object? For instance,
<p>#textField(objectName="dummy", property="name", label="Name")#</p>
objectName
seems to be a required parameter. http://cfwheels.org/docs/1-3/function/textfield
Upvotes: 0
Views: 80
Reputation: 2525
In CfWheels, there are four types of form helper functions:
The one you are using is form object function which requires object and there are other functions (form tag functions) like bellow that don't require object to bind to:
checkBoxTag() etc.... Check out all [form tag functions][1]
[1]: http://cfwheels.org/docs/1-0/function/category/view-helper category. I hope this helps.
Upvotes: 3