м развивающий отдых API от ZF.
это мой пользовательский контроллер.
<?php
class UserController extends Zend_Rest_Controller
{
public function init()
{
$this->_helper->viewRenderer->setNoRender(true);
}
public function indexAction()
{
$this->getResponse()
->appendBody("From indexAction() returning all articles");
}
public function getAction()
{
$this->getResponse()
->appendBody("From getAction() returning the requested article");
}
public function postAction()
{
$this->getResponse()
->appendBody("From postAction() creating the requested article");
}
public function putAction()
{
$this->getResponse()
->appendBody("From putAction() updating the requested article");
}
public function deleteAction()
{
$this->getResponse()
->appendBody("From deleteAction() deleting the requested article");
}
}
?>
Запустив этот URL http://quickstart.local/user/
m получаю
From indexAction() returning all articles
и запустив этот URL http://quickstart.local/user/1
m получаю
From getAction() returning the requested article
как я могу проверить сообщение, поставить, удалить действие.
Спасибо