View Single Post
  #1 (permalink)  
Old 10-23-2007, 02:13 PM
Davidoff Davidoff is offline
Junior Member
 
Join Date: Oct 2007
Posts: 27
Default GET forms with the MVC

I have an application which uses GET forms for the purpose of providing links which one person can send to another. For example:

Code:
projects.php?action=list&team=Design&client=SomeClientName&status=All
I am in the process of migrating to ZF and have a working MVC application. If i submit the above form I end up with something similar to:

Code:
/projects/list/?team=Design&client=SomeClientName&status=All
Ideally I would end up at

HTML Code:
/projects/index/team/Design/client/SomeClientName/status/All
OR
Code:
/projects/index/Design/SomeClientName/All
Is there a particular method I have missed for this, or should I be submitting my forms to some kind of /bounceController which redirects to the neat URL ?

I wonder if a Controller Plugin can be written, to detect a GET request with variables, and perform the rewriting.

Last edited by Davidoff : 10-23-2007 at 02:28 PM.
Reply With Quote