Hi
I've been looking at the recent Zend_Layout webinar (
Zend_Layout and Zend _View Enhancements Webinar). Not sure if I'm missing something, but I'm confused about the paths used.
All of the paths use the name of the view script rather than the action. For example,
http://layouttest.localhost/demo/ajaxy-autocomplete/ works instead of
http://layouttest.localhost/demo/ajaxyAutocomplete/ (on my local server), where the view script is ajaxy-autocomplete.tpl and there is a DemoController::ajaxyAutocompleteAction method.
The documentation seems to suggest that it would work the other way round (also the way I would have expected):
"Zend_Layout uses Zend_Filter_Inflector to establish a filter chain for translating a layout name to a layout script path. By default, it uses the rules 'CamelCaseToDash' followed by 'StringToLower', and the suffix 'phtml' to transform the name to a path."
Could anyone explain what is going on?
Many thanks...