1. First create a controller. Suppose controller name is "test". put this code here action name is "name".
class namespace_modulename_TestController extends Mage_Core_Controller_Front_Action{ public function nameAction() { $this->loadLayout(); $this->renderLayout(); } }
2. After controller creation set layout go to design->template->layou open the xml file put these code
page/1column.phtml
3. and last send request for controller "modulname/controller/actionname". print the all data of test.phtml file.
No comments:
Post a Comment