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*

8
  • This code will work for only index Action and will forbidden other Action Commented Apr 15, 2013 at 13:38
  • forbidden action? This has NOTHING to do with access control Commented Apr 15, 2013 at 13:45
  • The problem with Segment is when i put query string parameters like this: Commented Apr 15, 2013 at 13:50
  • @Sam is effectively right. You can create generic routes that examine the request path. These can be general enough so that you do not have to add a new route for each action. However, AFAIK, you cannot specify different routing on the query string. You'd have to create one action and then forward - not redirect - to different actions based upon the query string values. Also, AFAIK, this is no different than ZF1. Commented Apr 15, 2013 at 13:54
  • @fasi91 Modified the answer ;) Check again Commented Apr 15, 2013 at 13:58