[symfony-users] Re: help with customizing sfguard

2009-09-04 Thread jarthel
you're in luck! $form['fieldname_here']-renderError(). It returns a string. not empty = error. You need to use widgets to create the form tags (input, textarea and etc) or else it wouldn't work. On Sep 4, 6:12 pm, sweetgirl ezziani.cha...@gmail.com wrote: Hi jarthel, please did you find

[symfony-users] how to use sfCallbackValidator in sfGuard?

2009-09-04 Thread jarthel
The username in my login form can be a username or an email address. By default, the username field uses sfValidatorString() and this isn't enough to achieve what I require. If the text entered by the user has @ in it, I want to check if it's a valid email address (i.e. correct format). My

[symfony-users] Re: help with customizing sfguard

2009-09-03 Thread jarthel
new questions please :) I want to change the validation. username uses sfValidatorString. I want to use sfCallbackValidator. Do I need to edit the original class or do I need to create my own? thank you --~--~-~--~~~---~--~~ You received this message because you

[symfony-users] Re: help with customizing sfguard

2009-09-03 Thread jarthel
I need to use a custom validators because the username can be either username or an email address. If the user supplied an email address, I need to check if the email address supplied is valid. I have created 4 files which I have mentioned below. my custom validator (usernameChecker) throws an

[symfony-users] Re: help with customizing sfguard

2009-09-02 Thread jarthel
doh! thank you! :D On Sep 2, 9:16 pm, pcummins patwcumm...@gmail.com wrote: You have a typo in your template. $applicatonName is missing an i. On Sep 2, 12:42 am, jarthel jart...@gmail.com wrote: also, there's a topic about Customize the sfGuardUser model. It seems I can make changes

[symfony-users] Re: help with customizing sfguard

2009-09-02 Thread jarthel
more questions please :) 1. how do I display validation errors in custom template? I was able to find the source of the default signinSuccess.php but it's unclear on what to include in my template. I believe the default form uses this class = sfGuardFormSignin.class.php. 2. How do I tell

[symfony-users] global functions: where do I put it?

2009-09-01 Thread jarthel
I have an email address format checker that I found in the net. It's straight PHP with a function inside. I'm a bit unsure on where to put it. I thought of putting it somewhere in project-here/lib/vendor. Is it as simple as using require_once to include the files? Thank you

[symfony-users] Re: global functions: where do I put it?

2009-09-01 Thread jarthel
if I create it as a class, do I need to extend anything? thanks again On Sep 1, 3:33 pm, Stefan Koopmanschap stefan.koopmansc...@symfony- project.com wrote: Hi, The best way to do this in my opinion is to create a class in the lib/ folder (or in a subfolder, for instance lib/jarthel) where

[symfony-users] Re: global functions: where do I put it?

2009-09-01 Thread jarthel
. Just call it like that anywhere in your project: $checker = new emailChecker(); Regards, S. 2009/9/2 jarthel jart...@gmail.com if I create it as a class, do I need to extend anything? thanks again On Sep 1, 3:33 pm, Stefan Koopmanschap stefan.koopmansc...@symfony- project.com

[symfony-users] help with customizing sfguard

2009-09-01 Thread jarthel
I created sfGuardAuth folder in my app-name-here/modules here. I then create the foldesr actions and templates inside sfGuardAuth. In actions folder, I created a new actions.class.php and place the following contents: http://pastebin.ca/1551008 In templates, I created my own signinSuccess.php:

[symfony-users] Re: help with customizing sfguard

2009-09-01 Thread jarthel
also, there's a topic about Customize the sfGuardUser model. It seems I can make changes to the schema.yml for user profiles. Does that mean I need to also make appropriate changes to my DB? thanks again --~--~-~--~~~---~--~~ You received this message because you