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
.
I do not even want to redirect to this URL (user does not see this It should be Any idea how to solve it? LinkerController
I will use _forward ())
Methods to pass alternate paragraphs (post, received), but this method parameter Like ($ action, $ controller, $ module, $ parameter)
and my string
ProductController
).
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
Post a Comment