Ejemplo n.º 1
0
 /**
  * Renders view for given action and layout. In this case the view
  * is our Flash application and we simply need to serialize the data
  * and send it back to the client.
  * @param string $action
  * @param string $layout
  * @param string $file
  * @return void
  */
 public function render($action = null, $layout = null, $file = null)
 {
     if (!empty($this->validationErrors)) {
         $this->viewVars['ValidationErrors'] = $this->validationErrors;
     }
     $dispatcher = AmfDispatcher::getInstance();
     $encoding = $dispatcher->request->getObjectEncoding();
     $messageBody = new Zend_Amf_Value_MessageBody('/1/onResult', null, $this->viewVars);
     $response = new Zend_Amf_Response_Http();
     $response->setObjectEncoding($encoding);
     $response->addAmfBody($messageBody);
     $response->finalize();
     echo $response->getResponse();
 }
Ejemplo n.º 2
0
 public function isIeOverSsl()
 {
     return parent::isIeOverSsl();
 }