Hi, I’m new using Yii and I’ve been having an issue with the sidebar in my web app, I want to show another content different than the menu Gii creates with the CRUD, my question is: how can I modify that sidebar in a specific view to show other content?
I tried creating a div and giving it the sidebar id but it doesn’t work, is it something that I have to modify in layouts/column2.php or do I have to create a new layout?
Thanks a lot for your reply, my real issue is that I want to use a $layout for a specific action in a controller and that the rest of the actions to have the default one, I’ve tried creating another $layout variable within the action that I want to modify but it still uses the default one (I hope I made sense with this explanation), how can I achieve what I want? is it possible?
I found the answer all I just had to do was to put: $this->layout=’//layouts/nameoflayout’; within the action in the controller and it worked perfectly!