php - How to validate form fields without model name in cakephp -


How can I validate form data without model name? When I $ this-> Print the data , I get the data in the following array format. But the field does not have the model name [Select_family] = & gt; [Select_cores] = & gt; Select [select_color] = & gt; Select [select_color] = & gt; [Select_back_color] = & gt; Select [select_panel] = & gt; Select [select_design] = & gt; [Select_thickness] Select & gt; Select [select_edge] & gt; Select [volume] = & gt; [Save] = & gt; Save)

Thanks Advance.

You should use the model name because verification did not know where and what is valid.

You can set the name of the model before validation (like before validity callback or $ this-> model-> set () in the admin)

Comments

Popular posts from this blog

c - Mpirun hangs when mpi send and recieve is put in a loop -

python - Apply coupon to a customer's subscription based on non-stripe related actions on the site -

java - Unable to get JDBC connection in Spring application to MySQL -