Admin_ThemesController::uploadAction PHP Метод

uploadAction() публичный Метод

public uploadAction ( )
    public function uploadAction()
    {
        try {
            $this->view->response = $this->getThemeService()->installTheme($_FILES['browse']['tmp_name']);
        } catch (\Exception $e) {
            $this->view->response = false;
        }
        if ($this->_getParam('format') == 'json') {
            $this->_helper->layout()->disableLayout();
            $this->_helper->viewRenderer->setNoRender();
            $vars = Zend_Json::encode($this->view->getVars());
            $this->getResponse()->setBody($vars);
        }
    }