1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
...
	<link rel="stylesheet" type="text/css" href="<?php echo Yii::app()->request->baseUrl; ?>/css/main.css" />
	<link rel="stylesheet" type="text/css" href="<?php echo Yii::app()->request->baseUrl; ?>/css/form.css" />
	<link rel="stylesheet" type="text/css" href="<?php echo Yii::app()->request->baseUrl; ?>/css/menu.css" />

	<title><?php echo CHtml::encode($this->pageTitle); ?></title>
</head>
...

...
	<div id="mainmenu">
		<?php $this->widget('zii.widgets.CMenu',array(
			'items'=>array(
				array('label'=>'Home', 'url'=>array('/site/index')),
				array(
					'label'=>'About',
					'url'=>array('#'),
					'items'=>array(
						array('label'=>'Me', 'url'=>array('/site/page', 'view'=>'about'),
						array('label'=>'This', 'url'=>array('#')),
						array('label'=>'You', 'url'=>array('#')),
						),
					),
				array(
					'label'=>'How You Can',
					'url'=>array('#'),
					'items'=>array(
						array('label'=>'Contact Me', 'url'=>array('/site/contact')),
						array('label'=>'Download This', 'url'=>array('#')),
						array('label'=>'Say "Wow!"', 'url'=>array('#')),
						),
					),
				array('label'=>'Login', 'url'=>array('/site/login'), 'visible'=>Yii::app()->user->isGuest),
				array('label'=>'Logout ('.Yii::app()->user->name.')', 'url'=>array('/site/logout'), 'visible'=>!Yii::app()->user->isGuest)
			),
		)); ?>
	</div><!-- mainmenu -->
...
Lihat dalam bentuk teks  -  Unduh tempelan   -  Salin
Halaman ini menggunakan ikon cantik buatan Glyphicons