Welcome, Guest. Register Now!
   
Mark Forums Read Mark Forums Read Mark Forums Read


Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 06-23-2008, 04:55 PM
Junior Member
 
Join Date: Jun 2008
Posts: 2
Default Checking for unique email address or username

Can someone share their code (perhaps a custom validation class?) for how they're validating the uniqueness of a field in Zend_Form? I'm new to Zend (and OO), but I'm surprised I haven't been able to find an example of a registration form that checks for unique username or email address in a table.

Thanks
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 06-23-2008, 06:56 PM
Member
 
Join Date: Mar 2007
Posts: 40
Default

Hi,

create a validator, which checks the email/username against database. but be careful about update form
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 06-23-2008, 09:03 PM
Junior Member
 
Join Date: Jun 2008
Posts: 2
Default

I'm getting the feeling like Zend Framework isn't ideal for those learning OO and MVC at the same time.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 06-23-2008, 09:39 PM
Member
 
Join Date: Mar 2007
Posts: 40
Default

Yeah, that's probably right. You should study some books about OOP first.

I've learnt OOP from book about Java
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT. The time now is 10:30 PM.