Advertisement
Guest User

Untitled

a guest
Sep 28th, 2011
177
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.73 KB | None | 0 0
  1. <?php
  2.  
  3. class RestruntimeeventsController extends Zend_Rest_Controller
  4. {
  5.  
  6.     public function init()
  7.     {
  8.         $this->_helper->viewRenderer->setNoRender(true);
  9.     }
  10.    
  11.     public function indexAction() {
  12.        
  13.     }
  14.  
  15.     public function getAction() {
  16.         $this->getResponse()->setHttpResponseCode(200)->appendBody('get '.serialize($this->getRequest()->getParams()));
  17.         print_r($this->getRequest()->getParams());
  18.     }
  19.    
  20.     public function postAction() {
  21.         $this->getResponse()->setHttpResponseCode(200)->appendBody('post '.serialize($this->getRequest()->getParams()));
  22.     }
  23.  
  24.     public function putAction() {
  25.        
  26.     }
  27.    
  28.     public function deleteAction() {
  29.        
  30.     }
  31.    
  32. }
  33.  
  34.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement