Timeline for Using __call in a controller
Current License: CC BY-SA 3.0
12 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Nov 17, 2015 at 14:51 | history | edited | fmrng | CC BY-SA 3.0 |
deleted 136 characters in body
|
Nov 17, 2015 at 12:06 | comment | added | develophper | that works, cheers pal. | |
Nov 17, 2015 at 12:06 | vote | accept | develophper | ||
Nov 17, 2015 at 10:54 | comment | added | fmrng | @develophper see my code above, works for me. | |
Nov 17, 2015 at 10:53 | history | edited | fmrng | CC BY-SA 3.0 |
added 751 characters in body
|
Nov 17, 2015 at 10:47 | comment | added | develophper |
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()
|
|
Nov 17, 2015 at 10:43 | history | edited | fmrng | CC BY-SA 3.0 |
added 1 character in body
|
Nov 17, 2015 at 10:24 | history | edited | fmrng | CC BY-SA 3.0 |
added 538 characters in body
|
Nov 17, 2015 at 10:21 | comment | added | fmrng | Sorry, I haven't tested my answer, but now I did and it does work. I'm going to update my answer. | |
Nov 17, 2015 at 9:35 | comment | added | develophper |
I also get an exception if the method exists in the controller Front controller reached 100 router match iterations
|
|
Nov 17, 2015 at 9:34 | comment | added | develophper |
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,
|
|
Nov 17, 2015 at 8:58 | history | answered | fmrng | CC BY-SA 3.0 |