Home

mikekelly edited this page Sep 13, 2010 · 3 revisions
Clone this wiki locally

Customise Zend Framework so that it is more resource oriented.

Achieve this by extending a Controller and create a Resource controller with actions/methods that correspond to the HTTP uniform interface (GET, PUT, POST, DELETE, HEAD, OPTIONS).

In Resauce; a router will simply map a single URI pattern to a single controller.

e.g.
/books >> BookCollectionController

/books/123 >> BookController
/books/345 >> BookController

This is a deliberate design decision in order to provide greater flexibility in URI structure