Hi everyone
For the ease of form validation, I used sfPokaYoke but I have a
problem with it. In the view of the module "user" and action
"signup" (http://localhost/frontend_dev.php/user/signup), it says :
Warning: Invalid argument supplied for foreach() in /home/mephis/
foobar/plugins/sfPokaYokePlugin/lib/sfPokaYokeConfigHandler.class.php
on line 143
Here is what I ve done
1. I installed the plugin
2. Modify filters.yml
rendering: ~
web_debug: ~
security:
class: sfGuardBasicSecurityFilter
# generally, you will want to insert your own filters here
poka_yoke:
class: sfPokaYokeFilter
cache: ~
common: ~
flash: ~
execution: ~
3. Clear the cache (so many times...)
4. I have a validation file called "signup.yml" . I thought it is the
main cause because when I rename (or delete) it, the plugin works
again but I just can not validate those fields anymore.
fields:
username:
required:
msg: your username is required
sfStringValidator:
min: 5
min_error: Username must be 5 or more characters
sfPropelUniqueValidator:
class: sfGuardUser
column: username
unique_error: An account with this nickname already exists
#myNewAccountValidator:
#newaccount_error: An account with this nickname already exists
email:
required:
msg: email is required
sfEmailValidator:
email_error: email is invalid
password:
required:
msg: your password is required
sfStringValidator:
min: 6
min_error: Password must be more than 6
sfCompareValidator:
check: password_bis
compare_error: passwords do not match
password_bis:
required:
msg: passwords do not match
Can anyone help me with this? I have tried several methods including
reading the sfPokaYokeConfigHandler.class.php file but I still have no
clues.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"symfony users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/symfony-users?hl=en
-~----------~----~----~----~------~----~------~--~---