Mage_Core_AjaxController Class Reference

Inheritance diagram for Mage_Core_AjaxController:

Mage_Core_Controller_Front_Action Mage_Core_Controller_Varien_Action

List of all members.

Public Member Functions

 translateAction ()


Detailed Description

Definition at line 26 of file AjaxController.php.


Member Function Documentation

translateAction (  ) 

Definition at line 28 of file AjaxController.php.

00029     {
00030         if ($translate = $this->getRequest()->getPost('translate')) {
00031             try {
00032                 if ($area = $this->getRequest()->getPost('area')) {
00033                     Mage::getDesign()->setArea($area);
00034                 }
00035                 Mage::getModel('core/translate_inline')->processAjaxPost($translate);
00036                 echo "{success:true}";
00037             }
00038             catch (Exception $e) {
00039                 echo "{error:true,message:'" . $e->getMessage() . "'}";
00040             }
00041         }
00042         exit();
00043     }


The documentation for this class was generated from the following file:

Generated on Sat Jul 4 17:23:53 2009 for Magento by  doxygen 1.5.8