I am trying to create a site-wide “Tip A Friend” module which allows the user to tip a friend from any page and not just the product pages. My module is called LadiesRoom_TipAFriend. I have created a controller called IndexController and are able to load it if i enter shop.com/tipafriend/
I now need to be able to show a template which uses the 2column-left.phtml layout and display all the other blocks as normal (you know, shopping cart, newsletter subscription etc).
How do I create a layout XML file, and what lines are necessary to activate this in the controller? I am confused with how I create the XML file and how to map this in the IndexController so it uses the 2column-right layout and renders code from my controller (a block or template?)
If anyone knows any of the core modules I can take a look at to get an idea that would be great.
My modules configuration is as follows:
My controllers contents is as follows:
class LadiesRoom_TipAFriend_IndexController extends Mage_Core_Controller_Front_Action
public function indexAction()
/* Need code to show my block/template using the 2column-right page layout .. */
I really hope someone can help me with this..
Thanks in advance for any response