Hello,i have a problem with url routing,i am using Yii-bootstrap extension,i am using drop down menu but their url arent directing directly to the module,for example
array(
86 'class'=>'bootstrap.widgets.TbMenu',
87 'htmlOptions'=>array('class'=>'pull-right'),
88 'items'=>array(
89 array('label'=>'Sign in', 'url'=>'/user/auth','visible'=>Yii::app()->user->isGuest),
90 '---',
91 array('label'=>'Profile', 'url'=>'#','visible'=>!Yii::app()->user->isGuest, 'items'=>array(
92 <b>array('label'=>'Settings', 'url'=>'/user/user/'),
93 array('label'=>'Logout', 'url'=>'/user/user/logout'),<b>
94
95 )),
96 ),
97 ),
98 ),
99 ));?>
arent directing to my user module,i am expecting something like /localhost/mysite/index.php/user/user and
/localhost/mysite/index.php/user/user/logout but i get this <b>localhost/user/user and localhost/user/user/logout</b>
but the strange thing with CMenu,i am getting what i expected with the same url,i am wondering if its not caused by the fact these links are submenu of main menu
here is my working menu with CMenu
<?php $this->widget('zii.widgets.CMenu',array(
131 'items'=>array(
132 array('label'=>'Home', 'url'=>array('/site/index')),
133 array('label'=>'About', 'url'=>array('/site/page', 'view'=>'about')),
134 array('label'=>'Contact', 'url'=>array('/site/contact')),
135 array('label'=>'Login', 'url'=>array('//user/auth'), 'visible'=>Yii::app()->user->isGuest),
136 array('label'=>'Logout ('.Yii::app()->user->name.')', 'url'=>array('//user/user/logout'), 'visible'=>!Yii::app()->user->i sGuest),
137 array('label'=>'My profile ', 'url'=>array('/user/user/'), 'visible'=>!Yii::app()->user->isGuest),
138 ),
139 )); ?>