-- Kexiao Liao <
[hidden email]> wrote
(on Wednesday, 19 December 2007, 01:04 PM -0800):
> Why we need to use - or . between gastric and emptying? Please give more
> explanations?
In order to better match incoming requests, the router normalizes the
path elements to lowercase. If there is no separator between the words,
then they become 'gastricemptying', and the dispatcher then has no idea
that these are supposed to be two separate words and CamelCased. Adding
a word separator allows us to match on that and replace it with a space,
and then pass the result to ucwords -- giving us the CamelCasing
desired.
The conversion to lowercase is because humans are remarkably
unpredictable in how they type URLs, and could type them /ALLUPPER/CASE
or /alllower/case; to allow these to resolve regardless, we do the
normalization.
> Matthew Weier O'Phinney-3 wrote:
> >
> > -- Kexiao Liao <
[hidden email]> wrote
> > (on Wednesday, 19 December 2007, 12:27 PM -0800):
> >> Is the following php file name a valid Zend Framework controller file
> >> name?
> >>
> >> GastricEmptyingController.php
> >>
> >> Please note The letter E is capital E not small letter
> >
> > Yes, and you're refer to it on the URL as:
> >
> > /gastric-emptying/
> >
> > or
> >
> > /gastric.emptying/
> >
> > --
> > Matthew Weier O'Phinney
> > PHP Developer |
[hidden email]
> > Zend - The PHP Company |
http://www.zend.com/> >
> >
>
> --
> View this message in context:
http://www.nabble.com/correct-controller-php-file-name-tp14424663s16154p14425363.html> Sent from the Zend Framework mailing list archive at Nabble.com.
>
--
Matthew Weier O'Phinney
PHP Developer |
[hidden email]
Zend - The PHP Company |
http://www.zend.com/