php - Forward to given URL string -


Currently I am creating a controller (ZendFramework) that has a URL string with the given ID from the database.

/ linker / show / id / 6

i.e. id = 6 / products / list / type / Games .

LinkerController I will use _forward ()) Methods to pass alternate paragraphs (post, received), but this method parameter Like ($ action, $ controller, $ module, $ parameter) and my string

I do not even want to redirect to this URL (user does not see this It should be ProductController ).

Any idea how to solve it?

You can not forward url (due to the nature of forwarding - creating a new internal request object) You can only forward the request (module, controller, action).

Use the reinstallation (in the controller):

  $ this-> _helper-> Redirector-> GotoUrlAndExit ($ url);  

Comments

Popular posts from this blog

Is there an open source WebSockets (JavaScript) XMPP library? -

java - Is there an object like a "Set" that can contain only unique string values, but also contain a count on the number of occurrences of the string value? -

iphone - How do I make a UIPickerView in a UIActionSheet -