Hi folks,
I'm new to Zend Framework and I'm trying to follow the documentation and
create a REST web service using Zend Framework 1.11.
I did the following steps:
1) Created a project using zf create project MyProject
2) Created a controller using zf create controller MyWebService
3) Made MyWebServiceController inherit Zend_Controller_Action and created
the methods {index,get,post,put,delete}Action and made them print some
message using
public function getAction()
{
$this->getResponse()
->setHttpResponseCode(200)
->appendBody('getAction has been called.');
}
(the same code for each method)
4) Now I need to make my URL direct to the service using some kind of "
http://localhost/rest/" using Zend_Rest_Route, I tried to follow some
instructions from docs, tutorials, blogs etc. but without success.
Can anybody help me?
Thanks in advance,
Esdras
--
http://www.esdrasbeleza.com