Thanks and sorry for making you to waste your time. However, I didn’t like any solutions proposed there, So before trying to implement the cleaner one, I’ll tell you that I need actually to know which view was loaded in the layout. I was trying to pass a parameter from the controller that renders the view so that I could use that parameter for my purpose.
Is there a way for the layout to know which view was loaded? I was looking at CController methods and properties but I didn’t find a way to do that. If there is not a way, I will need to implement your solution about creating a BaseController derived class with that parameter.