View Short Links Are Not Working ?

Hello, I am facing a problem in the view short links like Create, Update, List, Delete, Manage.

When I import a new theme and set the theme name in config file. then although the theme is working well, but the short links as mentioned above are not displaying ?

Is there any one who can help in this situation ?

I have attached the screen shots of both the themes.

Thanks in advance.

Hi

Did you add zii.widgets.CMenu code in your theme ?

where to add that code ?

If the menu is the main menu then

yourproject/themes/yourtheme/views/layouts/main.php

go to the default view layout

yourproject/protected/views/layouts/main.php

There is a section like that


<div id="mainmenu">

                <?php

                $this->widget('zii.widgets.CMenu', array(

                    'items' => array(

                       ...

                    ),

                ));

                ?>

</div><!-- mainmenu -->

You have to add into your theme

Note:

if the menu is a conent menu (defined into the view)

for example go to protected/views/post/_form.php (or something like that), you should find something like that


$this->menu = array(

   ...

);



you should render this menu

go to

yourproject/protected/views/layouts/column2.php

copy the code and paste it in

yourproject/themes/yourtheme/views/layouts/column2.php

Okay thanks dear. I have solved it.