Added by Patrice De Saint Steban, last edited by Karol Babioch on Mar 04, 2008  (view change)

Labels

 
(None)

Zend Framework: Zend_Controller_Route_Get Component Proposal

Proposed Component Name Zend_Controller_Route_Get
Developer Notes http://framework.zend.com/wiki/display/ZFDEV/Zend_Controller_Route_Get
Proposers Patrice De Saint Steban
Revision 1.1 - 13 November 2007: Creation of the page (wiki revision: 5)

Table of Contents

1. Overview

Zend_Controller_Route_Get is a Route who use $_GET vars instead of the rewrite url. This route can permit to use Zend_Controller on a server without rewrite url mod.

2. References

3. Component Requirements, Constraints, and Acceptance Criteria

4. Dependencies on Other Framework Components

  • Zend_Controller

5. Theory of Operation

6. Milestones / Tasks

  • Milestone 1: proposal the new route component.

7. Class Index

  • Zend_Controller_Route_Get

8. Use Cases

UC-01

And all url become :
http://mysite.com/?controller=user&action=edit&id=1
The route match the request if the var controller exists in the $_GET var.

9. Class Skeletons

Note that you can always do /index.php/controller/action/foo as an alternative.

Yes I know, but all server hasn't this feature.
And I use this route to pass parameter with '/' like directory path.