Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

6
  • hey thanks for the answer. I'm getting a 404 though. I have a function named testAction and i call it in preDispath() with $this->_forward('test');. If I go to a url based on a method that exists in the controller there is no problem so I think the controller is set up correctly, Commented Nov 17, 2015 at 9:34
  • I also get an exception if the method exists in the controller Front controller reached 100 router match iterations Commented Nov 17, 2015 at 9:35
  • Sorry, I haven't tested my answer, but now I did and it does work. I'm going to update my answer. Commented Nov 17, 2015 at 10:21
  • Still getting a 404 on that. My controller is now extending Mage_Core_Controller_Varien_Router_Standard and match() returns true. In my preDispath() function I added your code if ($this->getRequest()->getActionName() !== 'foobar') { $this->_forward('foobar'); }. Fyi foobar() exists as foobarAction() Commented Nov 17, 2015 at 10:47
  • @develophper see my code above, works for me. Commented Nov 17, 2015 at 10:54