tier1 0 Newbie Poster

It's possible to make more complex URL's using Zend Rest Route?

I'm trying to make following route: /articles/filter/:query.

Simple controller:

class ArticlesController extends Zend_Rest_Controller
    {
        public function init()
        {
            $this->getHelper('ViewRenderer')->setNoRender(true);
        }

        public function indexAction() {}

        public function getAction() {}
        public function putAction() {}
        public function postAction() {}
        public function deleteAction() {}

        public function filterAction()
        {
            $query = $this->_getParam('query');

            //search in database
        }
    }

But how can I define route for this?

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.