how to access helper in magento

Jul 6, 2011   //   by kdecom   //   magento  //  No Comments

Hiya to all,

Problem:- How to access magento core module helper or your own (custom) module helper.

Solution:–

How to access on your (custom) module helper inside your own (custom) module

$this->helper(“HELPER_NAME”);

How to access the magento core module helper”-

Mage::helper(“HELPER_NAME”);
// return the number of total products in cart.
$count = Mage::helper(‘checkout/cart’)->getSummaryCount();

thanks

Leave a comment

css.php