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


Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 02-20-2008, 10:38 AM
Junior Member
 
Join Date: Feb 2008
Posts: 1
Default How to handle httpRequest like validate.php?name=the_name

Hi all, sorry for bad spelling :-)

Question: Is it possible to handel a url like 'validate.php?name=the_name' in the mvc zend framework?

For example, rewrite it to '/validate/name/thename' in som way?

Why?

I use jqery for client side forms validation on a site that use zend framework. The jquery validate pluging can use an ajax call to validate string to the database, like check if a username i already taken.

My problem!

Jquery sends the httpRequest in this format 'validate.php?name=the_name'. So I have to handle that url in some way?

Can I do that inside send framework or do I have to create small file not depending on the zend framework to rund the check?

best regards / johannes
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 02-20-2008, 06:37 PM
Senior Member
 
Join Date: Jan 2008
Location: chicago
Posts: 101
Default

You should use the Zend_Validate component in the framework to validate and not depend on javascript to validate forms. What if javascript is turned off? there goes your validation.
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 08:48 AM.