I think the problem is caused by we register other route for homepage.
Please look at the
_initRoutes function from
/application/Bootstrap.php file:
- Code: Select all
protected function _initRoutes()
{
$this->bootstrap('FrontController');
$front = $this->getResource('FrontController');
// (1)
$routes = Tomato_Module_Loader::getInstance()->getRoutes();
$front->setRouter($routes);
$front->getRouter()->removeDefaultRoutes();
// (2)
$front->getRouter()->addRoute(
'index',
new Zend_Controller_Router_Route('/', array(
'module' => 'default',
'controller' => 'Index',
'action' => 'index',
))
);
}
(1): The front controller add all routes configured in our routes files, including your
home_index route.
(2): It is registered a
index route which map with "/".
So, you can comment the (2) section and see what happen.
PS: In 2.0.7.1, the home page is mapped with
core_index_index route defined by core module, index controller and index action.
This controller action does not show anything.
If you want to customize the output of homepage, you can customize the
home.xml (in 2.0.7 and earlier) or
core_index_index.xml (in 2.0.7.1 which is coming out soon) in template directory (/application/templates/NameOfTemplate/layouts)