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 ~

Comments Off

Re-run module’s setup routines in Magento

October 25, 2010 10:03

When you’re implementing custom module, normally you will have to re-run setup routines. Some people will create newer version of the setup file, but it will make you confuse after 100 modification. To do it, simply remove references to your modules in “core_resource” table and then, in backend, go to ‘System’ -> ‘Configuration’ -> ‘Advanced’ [...]

Comments Off