-- SWilk <[EMAIL PROTECTED]> wrote
(on Wednesday, 19 March 2008, 03:15 PM +0100):
> Matthew Weier O'Phinney wrote:
> > -- Amr Mostafa <[EMAIL PROTECTED]> wrote
> > (on Tuesday, 18 March 2008, 01:53 AM +0200):
> > > It's in docs, but unfortunately not very obvious. There you go:
> > > http://framework.zend.com/manual/en/zend.controller.migration.html#
> > > zend.controller.migration.fromoneohtoonefive
> > And the above link is also pointed out prominently in the README.txt
> > file in the release. ;-)
>
> Unfortunately the documentation is very misleading at this point.
> It states that only view scipt names are affected, and not actionNames. The 
> second paragraph of 7.13.1 states:
>
> > For example, 'camel-cased' would become 'camelCasedAction' by the
> > dispatcher, whereas 'camelCased' would become 'camelcasedAction';
> > however, due to the case insensitivity of PHP, both will execute the
> > same method."
>
> This is not true, at least in our configuration. We have also developed 
> rather big application with ZF, and we have used 1.5RC for some time now. 
> All worked great till official 1.5 release.

Right -- because prior to ZF 1.5, we were not enforcing the casing.

*PHP* is case insensitive when it comes to method and function names --
it will execute camelcasedaction() the same as camelCasedAction() the
same as cAmElCASedActiON(). 

What we did was check to see if the requested action name matches the
methods available in the controller *exactly*. The reason was to make
sure that, further down the chain, you can find the view scripts
correctly, and that the URLs generated by things like the url helper and
redirector match the URLs being used on the site.

> Why SO big backward-incompatible change wasn't incorporated in Release 
> Candidate versions (or at least in first rc)?

It *was* in RC1; the change itself was introduced on 20 Feb 2008, and
RC1 was released 27 Feb 2008; you can see the changeset here:

    http://framework.zend.com/fisheye/changelog/Zend_Framework?cs=8235

> We have many hardcoded URLs in view scripts, and changing the case of 
> actionNames to lowercase is not an option, same reason as in Hoopes' case.
> What is best way to turn off this behavior?

Please read the following documentation:

    http://framework.zend.com/manual/en/zend.controller.migration.html

-- 
Matthew Weier O'Phinney
PHP Developer            | [EMAIL PROTECTED]
Zend - The PHP Company   | http://www.zend.com/

Reply via email to