Re: [fw-general] Using Zend_Rest_Server with Zend_Controller

2010-03-31 Thread Matthew Weier O'Phinney
-- robert mena wrote (on Wednesday, 31 March 2010, 09:16 AM -0430): > Thanks for the reply. > > Ok I know it is incorrect but still there is a problem with the usage - what > is > a resource (the method?)? > > Ex. My webservice should provide two functions : getPendingRequests() and > markRequ

Re: [fw-general] Using Zend_Rest_Server with Zend_Controller

2010-03-31 Thread robert mena
Hi Matthew, Thanks for the reply. Ok I know it is incorrect but still there is a problem with the usage - what is a resource (the method?)? Ex. My webservice should provide two functions : getPendingRequests() and markRequestDone(requestId) Assuming that the route is Zend_Rest and the controll

Re: [fw-general] Using Zend_Rest_Server with Zend_Controller

2010-03-31 Thread Matthew Weier O'Phinney
-- robert mena wrote (on Tuesday, 30 March 2010, 03:33 PM -0430): > What's the correct way to use Zend_Rest_Server with the MVC (i.e > Zend_Controller_Action)? > > I've read about the Zend_Rest_Route but should I have my Controller inherit > Zend_Rest_Controller (or define the index/put/get/post

Re: [fw-general] Using Zend_Rest_Server with Zend_Controller

2010-03-30 Thread Narinder Chandi
Hi. I am not using Zend_Rest_Route so I can't say but it looks like the way to do it. Did you try it to see if it works? Regards, Narinder. -- on 30/03/2010 23:34, robert mena at robert.m...@gmail.com wrote: > Hi, > > Just to make sure I understand correctly: > > a) In my index.php (bootstr

Re: [fw-general] Using Zend_Rest_Server with Zend_Controller

2010-03-30 Thread robert mena
Hi, Just to make sure I understand correctly: a) In my index.php (bootstrap) $front = Zend_Controller_Front::getInstance(); $front->addModuleDirectory('../application/'); // I only wat my RestController of my default module to be handled by the Zend_Rest_Route $restRoute = new Zend_Rest_Route($

Re: [fw-general] Using Zend_Rest_Server with Zend_Controller

2010-03-30 Thread Narinder Chandi
Sorry, accidentally clicked Send before completing the mail! Hi. This is an interesting question - something I've recently tackled myself. I read through this topic in several of the ZF books to get an idea. I concluded (rightly or wrongly) that if you want to handle all of the standard http acti

[fw-general] Using Zend_Rest_Server with Zend_Controller

2010-03-30 Thread robert mena
Hi, What's the correct way to use Zend_Rest_Server with the MVC (i.e Zend_Controller_Action)? I've read about the Zend_Rest_Route but should I have my Controller inherit Zend_Rest_Controller (or define the index/put/get/post/deleteAction) and put the new Zend_Rest_Server() / handle inside a cert