I have a module with routers have frontName as "ticket". It working in Magento version 2.0.0-rc. But when i install this module in Magento version 2.0.0-rc2, i request to this routers and browser return "404 Page".
How to fix this routers ?
Thanks for advice.
This is very strange, because my module working normally with Magento 2.0.0-rc.
EDIT
My code in below.
app/code/Demo/Ticket/etc/frontend/routers.xml
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:App/etc/routes.xsd">
<router id="standard">
<route id="ticket" frontName="ticket">
<module name="Demo_Ticket" />
</route>
</router>
</config>
app/code/Demo/Ticket/etc/module.xml
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../../../../../lib/internal/Magento/Framewo rk/Module/etc/module.xsd">
<module name="Demo_Ticket" setup_version="1.0.0">
<sequence>
<module name="Magento_Backend"/>
</sequence>
</module>
</config>
app/code/Demo/Ticket/Controller/Index/Index.php
<?php
namespace Demo\Ticket\Controller\Index;
class Index extends \Magento\Framework\App\Action\Action
{
public function __construct(
\Magento\Framework\App\Action\Context $context,
){
parent::__construct($context);
}
public function execute()
{
echo "Event Ticket";
}
}
app/code/Demo/Ticket/registration.php
<?php
/**
* Copyright © 2015 Magento. All rights reserved.
* See COPYING.txt for license details.
*/
\Magento\Framework\Component\ComponentRegistrar::register(
\Magento\Framework\Component\ComponentRegistrar::MODULE,
'Demo_Ticket',
__DIR__
);