Posted 13 September 2011 - 05:12 AM
I don't know how dev team plans to organize views (views folder) in new 2.0 framework, but I remember some suggestions to 1.1 branch to clearly separate layouts folder from views folder.
Current implementation not only disallow to have layouts set of views for example for LayoutsController (which might be necessary for many more complex projects). It also introduces some disorganisation, especially in large projects, with many controllers and views.
I don't know what are others' opinions on that, but I would strongly support the idea to move protected/views/layouts to protected/layouts folder.
Posted 13 September 2011 - 09:43 AM
Posted 28 September 2011 - 06:13 AM
@mbi: What would be the problem with having "default" module layouts kept in protected/layouts and for particular module in protected/modules/name/layouts?
@samdark: If we're going down to organisational and naming part, I would rather say that I would use LayoutController (singular) for implementation of all actions related to currently selected by user layout and LayoutsController for implementing operations on group of layouts, like adding, removing, configuring etc. But I agree that this purely organisational case and your solution is also OK.