Magento – the Route / Controller / Action path out

There are several ways to find out which route / Controller / Action path has one side of the shop. This is required e.g.. if you want to exclude or certain areas of the shop for functions just include. A specific application is e.g.. extension Members Only Catalog by Vinai Kopp. The extension can be used, to the shop “complete” to grant access only registered people.

Picture

Under German law certain pages must (such as e.g.. the imprint) but always be visible. Thus, this page should be visible to a person Unregistered.

In the Extension specific areas of a shop by entering the path can now be divided into Route / Controller / Action excluded from inspection.

To do this, simply copied quick and dirty following code e.g.. in the header.phtml of your own templates (top pure):

Route: <?php echo $this->getRequest()->getRouteName(); ?><br />
Controller: <?php echo $this->getRequest()->getControllerName(); ?><br />
Action: <?php echo $this->getRequest()->getActionName(); ?><br />
Path: <?php echo $this->getRequest()->getRouteName(); ?>/<?php echo $this->getRequest()->getControllerName(); ?>/<?php echo $this->getRequest()->getActionName(); ?>

Then load the front end and the desired page and at the top is everything.

A CMS page would e.g.. the path cms / page / view

The Use Registry customer / account / create

I forgot my password? customer/account/forgotpassword

Once you know what you need: Remove code again.

Used in Magento versions 1.4 – 1.9 Comments? Additions? Notes? Gladly!

Published by Covos

Since 2009 I have been working intensively with Magento. I started with the creation and operation of B2C stores. This was extended through my work in the logistics sector. This resulted first specialized B2E systems. Today I work day-a day with exciting B2C, B2B- and B2E projects and reports in this blog about challenges and give insider tips.

Leave a Reply

Your email address will not be published. Required fields are marked *