The layout structure of the site I am currently working on is based on the default Yii layout with some minor modifications where the basic structure of main.php is
Is there a way to access the view’s AR information from main.php and use it to display some information in the header div without having to move the header from main.php into each view?
Look at the way the standard ‘column2’ layout uses the controller to access the menu items. I think you will find your solution there =)
Your view can populate properties (or properties belonging to attached behaviors) to your controller, which can be accessed via the layout file or widgets within the layout file.