cancel
Showing results for 
Search instead for 
Did you mean: 

List of Front Controller Actions

List of Front Controller Actions

Hi there,

Does anyone know of a list of Front Controller Actions to use in conjunction with the below to check with if statements

 

<?php $action = Mage::app()->getFrontController()->getAction()->getFullActionName(); ?>

For example I have found that the check would be on the category page:

 

 <?php if ($action == 'catalog_category_view') { 
//Do Something
} ?>

Does anyone know if there is a list, or where to locate these in the XMLs for my development.

 

Thanks

Kirsty

2 REPLIES 2

Re: List of Front Controller Actions

[I've missed the Magento version]

Re: List of Front Controller Actions

This thread can help you to get the list of routes:

 

https://magento.stackexchange.com/questions/5384/magento-core-routes