library/Benri/Rest/Controller/Action.php
public function init()
    {
        parent::init();

        Zend_Controller_Front::getInstance()
            ->registerPlugin(new Zend_Controller_Plugin_PutHandler())
            ->registerPlugin(new Benri_Controller_Plugin_CORS())
            ->registerPlugin(new Benri_Controller_Plugin_RequireUserAgentHeader())
            ->registerPlugin(new Benri_Controller_Plugin_OptionsRequest());

        try {
            $this->getHelper('layout')->disableLayout();
        } catch (Zend_Controller_Action_Exception $e) {
            // If the Layout helper isn't enabled, just ignore and continue.
        }

        $this->getHelper('viewRenderer')->setNoRender(true);

        $this->_input = new StdClass();
    }
public function init()
    {
        parent::init();

        Zend_Controller_Front::getInstance()
            ->registerPlugin(new Zend_Controller_Plugin_PutHandler())
            ->registerPlugin(new Benri_Controller_Plugin_CORS())
            ->registerPlugin(new Benri_Controller_Plugin_RequireUserAgentHeader())
            ->registerPlugin(new Benri_Controller_Plugin_OptionsRequest());

        try {
            $this->getHelper('layout')->disableLayout();
        } catch (Zend_Controller_Action_Exception $e) {
            // If the Layout helper isn't enabled, just ignore and continue.
        }

        $this->getHelper('viewRenderer')->setNoRender(true);

        $this->_input = new StdClass();
    }
Initialize object.