Question:Which of the following will set a template only if a particular module is disabled in Magento?
A <action method="setTemplate" ifconfig="advanced/modules_disable_output/Myname_Mymodule"> <template>mytemplate.phtml</template> </action>
B Using File: app/code/core/Mage/Core/Model/Layout.php protected function _generateAction($node, $parent) { if (isset($node['ifconfig']) && ($configPath = (string)$node['ifconfig'])) { if (!Mage::getStoreConfigFlag($configPath)) { return $this; } }
C <action method="setTemplate"> <template helper="mymodule/myhelper/switchTemplateIf"/> </action>
D None
+ AnswerA
+ Report