ZF-2738: word separators are not converted to dashes (view rendering)

Issue Type: Bug Created: 2008-02-27T08:10:07.000+0000 Last Updated: 2008-03-21T17:26:44.000+0000 Status: Resolved Fix version(s): - 1.5.0 (17/Mar/08)

Reporter: Andries Seutens (andries) Assignee: Ralph Schindler (ralph) Tags: - Zend_Controller

Related issues: Attachments:


I am testing the 1.5 Release Candidate 1 for backwards compatibility, and I encountered the following problem:

I am trying to call the following controller/action: /clients.coaching/overview, this translates to ClientsCoachingController::overviewAction(). In the 1.0.3 release, when rendering the view (viewRenderer), this would look for the file clients-coaching/overview.phtml, but in the RC1, it translates to clients.coaching/overview.phtml

In the documentation it says:

"The canonical, documented way is that all word separators are converted to dashes, and the words lowercased. This creates a semantic tie between the actions and view scripts, and the normalization ensures that the scripts can be found."

So according to these docs, a '.' should be converted to a dash when checking for the view script.


Posted by Ralph Schindler (ralph) on 2008-02-27T09:56:46.000+0000

Since this is inflector/viewrenderer related, I'll have a look into it

Posted by Ralph Schindler (ralph) on 2008-03-04T12:50:43.000+0000

Fixed in r8534.

Changed the ViewRenderer to use a formatted name (by the dispatcher) rather than the raw names in the request object. This should solve the problem you are seeing, as well as pose as a solution for any type of word-separated issues that would have arisen.


Posted by Ralph Schindler (ralph) on 2008-03-13T14:31:26.000+0000

Fixed in 1.5

Have you found an issue?

See the Overview section for more details.


© 2006-2018 by Zend, a Rogue Wave Company. Made with by awesome contributors.

This website is built using zend-expressive and it runs on PHP 7.