Since yesterday, i’v decided to change my PHP IDE from Dreamweaver CS6 (DW) to Notepad++, DW caused my laptop stop working & unresponsive which is…
Continue reading Retrieve NPPFTP Settings
Leave a CommentMagento Indonesia Developer
Since yesterday, i’v decided to change my PHP IDE from Dreamweaver CS6 (DW) to Notepad++, DW caused my laptop stop working & unresponsive which is…
Continue reading Retrieve NPPFTP Settings
Leave a Commenthere example script how to display custom xml on your custom magento plugin
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 |
class Module_Modulename_IndexController extends Mage_Core_Controller_Front_Action{ public function IndexAction() { $this->loadLayout(false); $this->getResponse()->setHeader('Content-Type','text/xml'); echo '<?xml version="1.0"?>'; echo "<Magento>"; echo "<Developer>"; echo "<Name>Ansyori</Name>"; echo "<Email>ansyori@email.com</Email>"; echo "</Developer>"; echo "<Developer>"; echo "<Name>Ayra</Name>"; echo "<Email>ayra@email.com</Email>"; echo "</Developer>"; echo "</Magento>"; $this->renderLayout(); } } |
Continue reading Magento : Render any XML doc on controller
Leave a Comment