Stu,
It's not wise to suggest using Model::query as a solution to what is a
fairly simple issue (saving related hasMany or HABTM records)
Model::query is really a last resort method for completing complex
database queries that are not possible with Cake and it is in your
best interest to only us
Maulik and Matt,
As Stu says, if you want to offer multiple options but the user can
only select one then radio buttons should be used instead of
checkboxes or if there are only two options (1 and 0) then if you set
that table field to be TINYINT(1) Cake will automagically make that a
single chec
I'm having a similar issue
In the form, I allow users to select multiple checkboxes which are all
linked to one database field. When I try to save the form, it won't
allow me since it's trying to save the array instead of the
contents Since everything is automated, how can we add the
mult
This should be fairly easy to find in the docs, did you bake your app
using the bake script? or is it all from scratch?
Also if you have multiple choices for one field, radio buttons should
be used instead of check boxes (Usually the standard form completion
protocol).
However if you would like
hello all,
how can i store the value of enum using multiple checkbox select. &
how can i store it into database. suppose i use a data base field name
maritial_status then in the view i uses multiple checkboxes with
status. when i click on the checkbox it gives me result 1 or 0. now i
have to stor