How to create member only module in Magento?

June 13, 2011 14:26

Sometimes you may have to implement the module that is for member only, how to do it in Magento? In your controller which extends Mage_Core_Controller_Front_Action, add the following function: If the customer didn’t login, the controller will redirect the page to login page. Got it? Happy Magento’ing ~