cakephp 1.2 - Cake PHP - Form Validiation doesn't work -
My Cake PHP (1.2.5.) Does not validly validate my form.
$ this-> UserData- & gt; Save ($ -> -; data);
Always gives me a true value. I do not find the problem the label works for UserData.nichname.
This is the view:
Here's my controller:
class UserDatasController Extends AppController {var $ name = 'UserDatas'; Add function () {if (empty ($ - this-> data)) {$ this- & gt; UserData-> Create (); If ($ this-> UserData-> Save ($ -> -> Data)) {$ this- & gt; Session-> Set flash ('input is valid'); } And {$ this- & gt; Session-> Set flash ('input is not valid'); }}}}
are not in the model model, that reaseon I do not post it
What else is necessary for verification?
Thank you in advance
^^ Also check what your files say goes. Did you name your model file user_data.php correctly? And your controller user_data_controller.php?
Note underscores due to your excellent casing If you find the name of the model file incorrectly, then it does not complain, but instead will use a default magic model - which may be the model Your belief could not be followed within.
Comments
Post a Comment