I am trying to create a new page in magento ,in which I have to add some html and javascript. For this ,I have created a module . Contents of -> app\code\local\CompanyName\HelloWorld\etc\config.xml -
<?xml version="1.0"?>
<config>
<modules>
<CompanyName_Helloworld>
<version>
0.1.0
</version>
</CompanyName_Helloworld>
</modules>
<frontend>
<routers>
<helloworld>
<use>standard</use>
<args>
<module>CompanyName_Helloworld</module>
<frontName>Helloworld</frontName>
</args>
</helloworld>
</routers>
</frontend>
Contents of -> app\code\local\CompanyName\HelloWorld\controllers\IndexController.php -
<?php
class CompanyName_Helloworld_IndexController extends Mage_Core_Controller_Front_Action{
public function indexAction(){
$this->loadLayout();
$this->renderLayout();
//echo "We're echoing just to show that this is what's called, normally you'd have some kind of redirect going on here";
}
}
?>
After doing all this when I goto domain/index.php/Helloworld I can see the header and the footer,Now I want to add some "div" tags and javascript between them. Please Explain how to do it.