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.
konapaz
(Konapaz)
May 8, 2014, 12:04pm
2
Hi
Did you add zii.widgets.CMenu code in your theme ?
konapaz
(Konapaz)
May 8, 2014, 12:23pm
4
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
konapaz
(Konapaz)
May 8, 2014, 12:33pm
5
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
KonApaz:
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.