Public Member Functions | |
preDispatch () | |
postDispatch () | |
__ () |
Definition at line 34 of file Action.php.
__ | ( | ) |
Translate a phrase
Definition at line 68 of file Action.php.
00069 { 00070 $args = func_get_args(); 00071 $expr = new Mage_Core_Model_Translate_Expr(array_shift($args), $this->_getRealModuleName()); 00072 array_unshift($args, $expr); 00073 return Mage::app()->getTranslator()->translate($args); 00074 }
postDispatch | ( | ) |
Postdispatch: should set last visited url
Reimplemented from Mage_Core_Controller_Varien_Action.
Definition at line 54 of file Action.php.
00055 { 00056 parent::postDispatch(); 00057 if (!$this->getFlag('', self::FLAG_NO_START_SESSION )) { 00058 Mage::getSingleton('core/session')->setLastUrl(Mage::getUrl('*/*/*'), array('_current'=>true)); 00059 } 00060 return $this; 00061 }
preDispatch | ( | ) |
Predispatch: shoud set layout area
Reimplemented from Mage_Core_Controller_Varien_Action.
Reimplemented in Mage_Api_Controller_Action, Mage_Catalog_Seo_SitemapController, Mage_CatalogSearch_TermController, Mage_Checkout_MultishippingController, Mage_Checkout_OnepageController, Mage_Contacts_IndexController, Mage_Customer_AccountController, Mage_Customer_AddressController, Mage_Downloadable_CustomerController, Mage_Newsletter_ManageController, Mage_ProductAlert_AddController, Mage_ProductAlert_UnsubscribeController, Mage_Review_ProductController, Mage_Sales_OrderController, and Mage_Wishlist_IndexController.
Definition at line 41 of file Action.php.
00042 { 00043 $this->getLayout()->setArea('frontend'); 00044 00045 parent::preDispatch(); 00046 return $this; 00047 }