History | Log In     View a printable version of the current page.  
Issue Details (XML | Word | Printable)

Key: ZF-138
Type: Improvement Improvement
Status: Closed Closed
Resolution: Fixed
Priority: Minor Minor
Assignee: Michal Minicki
Reporter: Matthew Ratzloff
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
Google issue summary
Zend Framework

Automatically prepend _rewriteBase to outgoing routes in Zend_Controller_RewriteRouter

Created: 22/Jun/06 02:35 PM   Updated: 05/Jul/07 02:44 PM
Component/s: Zend_Controller
Affects Version/s: 0.1.4
Fix Version/s: 0.1.4

Time Tracking:
Not Specified

Tags:
Participants: Matthew Ratzloff and Michal Minicki


 Description  « Hide
I brought this up briefly on the list but I thought I would submit a formal issue for it.

I think _rewriteBase should be automatically prepended to the routes. On applications that would be distributed via download it would be easier to define generic routes. An application with routes like:

/user/:id
/news/:action/:id

would never require a base path to be set in a config file or anything, as opposed to

{$settings->basePath}/user/:id
{$settings->basePath}/news/:action/:id

You'd have to do a few checks for beginning slashes, but I think it would be a neat change coupled with the automatic _rewriteBase detection that was recently added.



 All   Comments   Work Log   Change History   FishEye   Crucible      Sort Order: Ascending order - Click to sort in descending order
Michal Minicki - 23/Jun/06 06:42 AM
RewriteBase should never be prepended to your routing rules. RewriteBase is automaticaly removed from a path before calculating route matches.

Everything you were required to do was to set a correct rewrite base and set the rules without it. Thanks to todays commit you don't have to set it anymore as it is detected and set automaticaly.