I have gone through this tutorial on youtube
Quick start to magento customization - part 1
As I don't have knowledge on php, I understood only the configuration layout part.
The video says that if we type localhost/magento/requestflowtest
, we will see a page saying Helloworld. but I am getting error "404 not found".
What I have done by going through the tutorial is as follows:
- In app/code/local --> created a folder name "Practice" (case sensitive)
- In app/code/local/Practice --> created a new folder name "ControllerTest"
- In app/code/local/Practice/ControllerTest/ --> created a new folder name "etc"
- In app/code/local/Practice/ControllerTest/etc --> created a xml file "config.xml" . The content in it is as follows:
config.xml:
<?xml version="1.0."?>
<config>
<modules>
<Practice_ControllerTest>
<version>0.0.1</version>
</Practice_ControllerTest>
</modules>
<frontend>
<routers>
<test_controller>
<use>standard</use>
<args>
<module>Practice_ControllerTest</module>
<frontName>requestflowtest</frontName>
</args>
</test_controller>
</routers>
</frontend>
</config>
- Then in app/etc/modules --> Created a new xml file with name "Practice_ControllerTest.xml" and added the following content:
Practice_ControllerTest.xml
<?xml version="1.0"?>
<config>
<modules>
<Practice_ControllerTest>
<active>true</active>
<codePool>local</codePool>
</Practice_ControllerTest>
</modules>
</config>
- Then in app/code/local/Practice/ControllerTest --> added a new folder "controllers"
- In app/code/local/Practice/ControllerTest/controllers --> added a new php file with name "IndexController.php" and added the following content to it:
IndexController.php
<?php
class Practice_ControllerTest_IndexController
extends Mage_Core_Controller_Front_Action
{
/*
* General report action
*/
public function indexAction(){
echo "<h1>Hello World!!</h1>";
}
}
What could I have been doing wrong here?
indexController.php
toIndexController.php
and make sure your Magento caches are disabled or flushed.http://localhost/magento/index.php/requestflowtest
, still same error.