1

I am Trying To create a Simple Module. It's Found 404 page Error.

My config file in app/etc/module/Ffay_All.xml

<?xml version = "1.0"?>
   <config>
      <modules>
        <Ffay_Test>
            <active>true</active>
            <codePool>local</codePool>
         </Ffay_Test>
       </modules>
    </config>

Create Controllrer in app\code\local\Ffay\Test\controllers\IndexController.php

class Ffay_Test_IndexController extends Mage_Core_Controller_Front_Action
{
   public function indexAction ()
   {
     echo 'test index';
   }
   public function mamethodeAction ()
   {
     echo 'test mymethod';
    }
}

And Create My Plugin xml file in app\code\local\Ffay\Test\etc\config.xml

   <?xml version="1.0"?>
  <config>
     <modules>
        <Ffay_Test>
          <version>1.0.0</version>
        </Ffay_Test>
     </modules>
     <frontend>       
        <routers>
            <routeurfrontend>
            <use>standard</use>
            <args>
                <module>Ffay_Test</module>
                <frontName>testing</frontName>
            </args>
            </routeurfrontend>
        </routers>    
    </frontend>
</config>

When I am Write testing in magento in display 404 page error. can You Tell me What's Issue?

1 Answer 1

5

I tested your code and it seams to work.
I only have 2 comments.
You say you created the file app/etc/module/Ffay_All.xml. I assume that's a typo and the correct folder is app/etc/modules/Ffay_All.xml (modules instead of module).
I aslo see some spaces in your config.xml file at the beginning before <?xml version="1.0"?>. remove them.
Also clear the cache.

It worked for me for url testing and testing/index/mamethode.

2
  • I am removing space in my config file. After trying, but still error 404 page.
    – coder
    Aug 6, 2014 at 6:39
  • You're also right, I found My the issue. I am check it one space is in my config.xml
    – coder
    Aug 7, 2014 at 13:15

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.