|
|||
|
Check out Zend_Controller_Request_Abstract. The getParams() and getUserParams() returns the exact same thing. I came upon this because I want to get user parameters differently than the default key/value way. Stripping out the 'method', 'controller' and 'action' key/values is easy, but the getUserParams() should do that for me. I don't consider this a bug, just a function not doing what it's supposed to do. Any developers reading this, umm, make it work? TIA
I have a routing question. I have a user controller (UserController) and I want to pass parameters to the default action without specifying the 'index' action in the URL. Here's what I want to do: http://localhost/app/user/id/672 I want this URL to execute the indexAction() in UserController so that I can extract the id parameter. Of course, the default setup looks for the 'id' action and returns a fatal error. How can I make the router use the 'index' action when it can't find a valid action? Thanks. |
|
|||
|
Not exactly what you are looking for but one way of doing it is by adding a custom route.
PHP Code:
to 'http://site/mymod/myctrl/index/id/<id>/' You can also extend the router or routes with your own logic if the above doesn't cut it. |
![]() |
| Thread Tools | |
| Display Modes | |
|
|