To be honest I have not tried the plugin with the admin generator. But there is no reason why it would not work.... You would still have to write the validation rules in your YML files.
2008/6/26 Haris Zukanović <[EMAIL PROTECTED]>: > Can sfPokaYoke somehow be used "automaticaly" with admin generator ? > > Alistair Stead wrote: > > Hi, > If I get chance this weekend I'll try and get an example for you. > > Regards > > Alistair > > 2008/6/26 Grégoire <[EMAIL PROTECTED]>: > >> >> Thanks! >> Hum... okay... >> I've taken a look at the wiki page of your plugin, but it is not >> explained how to do that... And it's in the TODOs "provide examples to >> extend validators for javascript callback options" :) >> So how can I do that? >> >> On 26 juin, 12:03, "Alistair Stead" <[EMAIL PROTECTED]> >> wrote: >> > Hi Gregoire, >> > You can achieve this with sfPokaYoke but you will need to port your >> > validator to JavaScript and use an AJAX Callback. >> > >> > If you use the same naming as you PHP validator sfPokaYoke will simply >> use >> > your validation method to return a boolean for the status of the form >> input. >> > >> > Regards >> > >> > Alistair >> > >> > 2008/6/26 Grégoire <[EMAIL PROTECTED]>: >> > >> > >> > >> > >> > >> > > Hi, >> > >> > > I'm using symfony 1.0. I'd like to validate my create user form in >> > > client side. I've found plugins on the wiki, but they only work with >> > > yaml validation files. But I have custom validators, for example: I >> > > check that the email isn't already used by a _validated_ user, that >> > > kind of stuff... >> > >> > > I can add a specific action to check my values using ajax, but it >> > > duplicates the validation code... :( >> > > Is there a way to do that thing cleanly? >> > >> > > Thanks! >> > >> > -- >> > Alistair Stead >> > Senior Interactive Developer >> > >> > Mobile: +44 (0) 7788 107 333 >> > Email: [EMAIL PROTECTED] >> > WWW: designdisclosure.com >> > >> > The information contained in this email is confidential and may contain >> > proprietary information. It is meant solely for the intended >> > recipient/recipients. Access to this email by anyone else is >> unauthorised. >> > If you are not the intended recipient, any disclosure, copying, >> distribution >> > or any action taken or omitted in reliance on this, is prohibited and >> may be >> > unlawful. Please consider the environment before printing this e-mail. >> >> > > > -- > Alistair Stead > Senior Interactive Developer > > Mobile: +44 (0) 7788 107 333 > Email: [EMAIL PROTECTED] > WWW: designdisclosure.com > > > The information contained in this email is confidential and may contain > proprietary information. It is meant solely for the intended > recipient/recipients. Access to this email by anyone else is unauthorised. > If you are not the intended recipient, any disclosure, copying, distribution > or any action taken or omitted in reliance on this, is prohibited and may be > unlawful. Please consider the environment before printing this e-mail. > > > > -- > Haris Zukanovic > CEO > Software development and research > International Business Development, SOFTING ltd. > > > office +387 36 318 339 > GSM +387 61 839 069 > http://www.eu-softing.com > > > > > > CONFIDENTIALITY NOTICE > This e-mail and any attached files, sent by a company e - mail system, > contains company confidential and/or privileged information and is intended > only for the person or entity to which it is addressed and only for the > purposes therein set forth. If you are not the intended recipient (or have > received this e-mail in error) please notify the sender immediately and > destroy this e-mail. Any unauthorized copying, disclosure, distribution or > other use of, or taking of any action in reliance upon, the material in this > e-mail by persons or entities other than the intended recipient is strictly > forbidden. > > > > > -- Alistair Stead Senior Interactive Developer Mobile: +44 (0) 7788 107 333 Email: [EMAIL PROTECTED] WWW: designdisclosure.com The information contained in this email is confidential and may contain proprietary information. It is meant solely for the intended recipient/recipients. Access to this email by anyone else is unauthorised. If you are not the intended recipient, any disclosure, copying, distribution or any action taken or omitted in reliance on this, is prohibited and may be unlawful. Please consider the environment before printing this e-mail. --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
