Hey guys, I've had a good read on the manual chapters about Zend_View and Zend_Layout. In Zend_View, somwhere down the line, it's mentioned that one can have all modules under a folder, default included, and that's what I'm doing.
My problem concerns scoping. - I have the same folder structure for modules/default and modules/admin. - Both have a layout.phtml under views/scripts. - Both have a header.phtml and footer.phtml under views/scripts/partials. - My team leader is using Andries Seutens' Application Class facade to configure and bootstrap the framework. - These are the config.ini entries for the admin module's routes: * routes.<route_name>.route = "admin/<controller_name>" * routes.<route_name>.defaults.module = "admin" - Other entries under config.ini only concern DB, no Zend_Layout entries or any other. What I was expecting was each time I'm calling an "example.com/admin/*" route is that the scope would be on the modules/admin/views/script files. Or at least there first and then fallback to modules/default/views/scripts files. What I'm getting is, somewhat, the other way around: default is getting a higher score in the scoping, hence conflicting names are resolved to modules/default/views/scripts first. My question is: How can I configure or reverse the conflicting resolution method that Zend_Layout carries out? On a related subject: Is it possible to have the URL View Helper return a url containing the module in it but not having it mentioned in the config.ini? Clarifying: - confg.ini: * routes.listusers.route = "users/list" ; Not "admin/users/list" * routes.listusers.defaults.module = "admin" - under view, $this->url(array(), "listusers") returns: http://example.com/admin/users/list, not http://example.com/users/list Many thanks in advance guys, Gustavo Carreno --- http://batxman.wordpress.com < If you know Red Hat you know Red Hat, If you know Slackware you know Linux >
