落叶 2011-04-17 20:57:05 5758次浏览 15条回复 0 0 0
$this->widget('zii.widgets.CMenu', array(
  'items'=>array(
  // Important: you need to specify url as 'controller/action',
  // not just as 'controller' even if default acion is used.
  array('label'=>'Home', 'url'=>array('site/index')),
    array('label'=>'Products', 'url'=>array('product/index'), 'items'=>array(
      array('label'=>'New Arrivals', 'url'=>array('product/new', 'tag'=>'new',)),
        array('label'=>'Most Popular', 'url'=>array('product/index', 'tag'=>'popular')),
  )),
  array('label'=>'Login', 'url'=>array('site/login'), 'visible'=>Yii::app()->user->isGuest),
 ),
));

用这样来实现,为什么默认情况Yii的默认样式会走样 会出现这种情况[attach]93[/attach] Yii里没有默认样式吗

您需要登录后才可以回复。登录 | 立即注册