#013844: Support reverse route generation: create an URL from an argument.

Description:

A reverse route generation method that creates an url from one or several arguments should be added to ezcRoute interface.
It should be implemented in the current route implementations.


Environment:

Operating System:
PHP Version: (please be specific, like '4.4.3' or '5.1.5')
Database and version:
Browser (and version):


- Attachments

No attachments for this issue.


- Comments

Another issue will be created for the Template custom block/function that can use it once this issue is fixed.

#258840 by James Pic on October 29th, 2008 [Permanent Link]

Implemented in rev.10121, but there is only an implementation for the ezcMvcRailsRoute, as doing it for the regular expression route is quite impossible. I've also added access to the router to the controller, so that you can use it to generate redirection URLs like:

[code]
$request = clone $this->request;
$request->uri = $this->router->generateUrl( 'linkDisplay', array( 'linkId' => $linkId ) );
return new ezcMvcInternalRedirect( $request );
[/code]

#261205 by Derick Rethans on April 7th, 2009 [Permanent Link]

- History
Properties
Type Enhancement
Priority Medium
Component Components » MvcTools
Affects Unknown
Fix Version 2009.1alpha1 - eZ components 2009.1alpha1
Reporter James Pic
Responsible Derick Rethans
Status 0 Closed
Resolution Implemented
Created October 29th, 2008
Updated April 7th, 2009
Resolved April 7th, 2009
 
Navigation [Permanent Link]
Previous Issue
Back to Issues List
Next Issue: #015537
  Graph shows to small and truncated rotated axis labels