I am trying to create a module for magento. I have placed it in 'local' codepool, 'Sample' namespace, 'Practice' folder . It appears in admin panel but when I type the url I get 404 response.
config.xml
<config>
<modules>
<Sample_Practice>
<version>0.1.0</version>
</Sample_Practice>
</modules>
<frontend>
<routers>
<practice>
<use>standard</use>
<args>
<module>Sample_Practice</module>
<frontName>practice</frontName>
</args>
</practice>
</routers>
</frontend>
</config>
module config file name is Sample_Practice.xml
<config>
<modules>
<Sample_Practice>
<active>true</active>
<codepool>local</codepool>
</Sample_Practice>
</modules>
</config>
IndexController.php
<?php
class Sample_Practice_IndexController extends Mage_Core_Controller_Front_Action {
public function indexAction() {
echo 'Practice module';
}
}
?>
Where is my code breaking ?