С появлением Zend_Rest_Route в Zend Framework 1.9 (и его update в 1.9.2) теперь у нас есть стандартизированное решение RESTful для маршрутизации запросов. По состоянию на август 2009 г. примеров его использования нет, только базовая документация в справочном руководстве.
Хотя это, возможно, намного проще, чем я предполагаю, я надеялся, что более компетентные, чем я, смогут предоставить несколько примеров, иллюстрирующих использование Zend_Rest_Controller в ситуации, когда:
- Некоторые контроллеры (например, indexController.php) работают нормально.
- Другие работают как сервисы на основе отдыха (возвращая json)
Появляется помощник действий JSON. теперь полностью автоматизирует и оптимизирует ответ json на запрос, что делает его использование вместе с Zend_Rest_Route идеальной комбинацией.