is there a way to getCurrentView from within the main layout?
is there a way to getCurrentView from within the main layout?
Nope. If you need this, you may try storing the name in a controller property and access it from the layout.
good idea, thanks qiang