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

c# - How to capture HTTP packet with SharpPcap -

php - Multiple Select with Explode: only returns the word "Array" -

php - jQuery AJAX Post not working -