28 more words
$activeCarriers = Mage::getSingleton(‘shipping/config’)->getActiveCarriers();
foreach($activeCarriers as $carrierCode => $carrierModel)
$options = array();
if( $carrierMethods = $carrierModel->getAllowedMethods() )
foreach ($carrierMethods as $methodCode => $method)
Tags » Magento
You can easily get controller name, action name, router name and module name in any template file or class file.
IN TEMPLATE FILES
$this->getRequest() can be used in template (phtml) files. 189 more words
I wanted to give a more narrowly focused step by step debugging checklist for Magento.
Get XDebug or ZendDebugger Working
I, personally, don’t know how anyone can develop effectively outside of an IDE (mine being Eclipse PDT), or without a debugging environment. 815 more words
Yes you can run direct sql queries within Magento, the best way to do this is to use the read write resource. You can insatiate it with: 100 more words