Есть некоторая проблема с макетом, который не загружается с интерфейсом в модуле magento.
config.xml
<?xml version="1.0" encoding="UTF-8"?>
<config>
<modules>
<Way_SaleWithus>
<version>1.0.0</version>
</Way_SaleWithus>
</modules>
<frontend>
<routers>
<SaleWithus>
<use>standard</use>
<args>
<module>Way_SaleWithus</module>
<frontName>SaleWithus</frontName>
</args>
</SaleWithus>
</routers>
<layout>
<updates>
<SaleWithus>
<file>SaleWithus.xml</file>
</SaleWithus>
</updates>
</layout>
</frontend>
</config>
SaleWithus.xml
Расположение: app/design/frontend/base/default/layout/SaleWithus.xml
<?xml version="1.0" encoding="UTF-8"?>
<layout version="0.1.0">
<SaleWithus_index_index>
<reference name="content">
<block type="core/template" name="SaleWithus" template="SaleWithus/SaleWithus.phtml" />
</reference>
</SaleWithus_index_index>
</layout>
SaleWithus.phtml Местоположение app/design/frontend/base/default/template/SaleWithus/SaleWithus.phtml
<div>
<h4>Hello World!!</h4>
</div>
IndexController.php
<?php
class Way_SaleWithus_IndexController extends Mage_Core_Controller_Front_Action
{
public function indexAction()
{
// if ($this->_getSession()->isLoggedIn()) {
// $this->_redirect('*/*/');
// return;
// }
// $this->getResponse()->setHeader('Login-Required', 'true');
// $this->loadLayout();
// $this->_initLayoutMessages('customer/session');
// $this->_initLayoutMessages('catalog/session');
// $this->renderLayout();
$this->loadLayout();
$this->renderLayout();
echo "subhash";
}
protected function _getSession()
{
return Mage::getSingleton('customer/session');
}
}
?>
Где я ошибаюсь в коде?