2010年12月25日星期六

[fw-mvc] Re: View Scripts

weierophinney wrote:
>
>> I am creating a controller, Mainewap...
>

I notice you named the controller "Mainewap" which leads me to believe that
you know the difference between naming the controller:

"Mainewap" vs
"MaineWap".

The difference is that the second variation is "inflected" to/from
"maine-wap" where the first stays as "Mainewap".


weierophinney wrote:
>
> ...when I append "wap" to the end of the state name, Zend decides to split
> it up randomly with a dash, so it may come out as main-ewap, and won't
> find the directory.
>

This leads me to believe that the string you are ending up with looks
something like "MainEwap". If you want to reference a directory of
"maine-wap" you likely need to ensure that you have "MaineWap" or you should
just build the directory name without handing it to the inflector.

Of course, I'm taking a shot in the dark as you didn't exactly spell-out
your entire workflow so it really is difficult to know for sure what the
correct solution should be.

If you have more information to add, that would be great.

Is there any way to
> ensure that when I create the state's second view script of
> information, it doesn't put a random dash in the name?

How exactly are you appending? And what exactly are you appending?

--
Matthew Weier O'Phinney
Project Lead | matthew@zend.com
Zend Framework | http://framework.zend.com/
PGP key: http://framework.zend.com/zf-matthew-pgp-key.asc


-----
--
Wil Moore III

Why is Bottom-posting better than Top-posting:
http://www.caliburn.nl/topposting.html

DO NOT TOP-POST and DO trim your replies:
http://linux.sgms-centre.com/misc/netiquette.php#toppost
--
View this message in context: http://zend-framework-community.634137.n4.nabble.com/View-Scripts-tp3159765p3164026.html
Sent from the Zend MVC mailing list archive at Nabble.com.

没有评论: