Layout is not consistent

I recently added message module in my application

in main .php it looks like the following


		// uncomment the following to enable the Gii tool


'message' => array(

            'userModel' => 'User',

            'getNameMethod' => 'getFullName',

            'getSuggestMethod' => 'getSuggest',



inside message module i have the

public $viewPath = '/message/fancy';

and , the module has its own navigation, bootstrap.css , styles etc.,

So, when I click on the message link , the entire layout actually changes, what do I need to do to ensure that i have the same layout as my main application?

Check how I click on message and entire layout changes!!


Screen Shot 2014-10-09 at 2.34.57 PM.png


Screen Shot 2014-10-09 at 2.35.12 PM.png

Basically , the module is behaving completely different that the main application… e.g i can’t see the columns on the left when i click on the messages

Set all module controllers layout to

public $layout='//layouts/column1';


"//layouts" means the application layout folder.

I got the columns, yes but i didnt get why the sub navigation bar behaves differently… i mean it does not highlight itself which i click on "Message" I mean when I click on profile, the menu gets highlighted, as you can see in the picture above.