Hi,
i want make static menubar for this i wrote this code :
<?php $this->widget(‘zii.widgets.CMenu’,array(
‘items’=>array(
array(‘label’=>‘Home’, ‘url’=>array(’/site/index’)),
array(‘label’=>‘Company’, ‘url’=>’#’
‘items’=>array(
array(‘label’=>‘About Us’,
‘items’=>array(
array(‘label’=>‘Our Story’, ‘url’=>’#’),
array(‘label’=>‘Our Differance’, ‘url’=>’#’),
array(‘label’=>‘Our Working Methedology’, ‘url’=>’#’),
)),
array(‘label’=>‘Client’,
‘items’=>array(
array(‘label’=>‘Testimonial’, ‘url’=>’#’),
array(‘label’=>‘Client Vedio Testimonial’, ‘url’=>’#’),
)),
)),
array(‘label’=>‘Services’, ‘url’=>’#’
‘items’=>array(
array(‘label’=>‘Moblie Application’,
‘items’=>array(
array(‘label’=>‘IPhone App Development’, ‘url’=>’#’),
array(‘label’=>‘IPad App Development’, ‘url’=>’#’),
array(‘label’=>‘Android App Development’, ‘url’=>’#’),
array(‘label’=>‘Windows Moblie Development’, ‘url’=>’#’),
array(‘label’=>‘Cross-Platform Development’, ‘url’=>’#’),
)),
array(‘label’=>‘Web Development’,
‘items’=>array(
array(‘label’=>‘Mobile App Web Development’, ‘url’=>’#’),
array(‘label’=>‘Web Application Development’, ‘url’=>’#’),
array(‘label’=>‘Web Design And Development’, ‘url’=>’#’),
array(‘label’=>‘E-Commerce Web Development’, ‘url’=>’#’),
array(‘label’=>‘CMS Website Development’, ‘url’=>’#’),
)),
)),
array(‘label’=>‘Solutions’, ‘url’=>’#’
‘items’=>array(
array(‘label’=>‘Technology’,
‘items’=>array(
array(‘label’=>‘PHP Development’, ‘url’=>’#’),
array(‘label’=>‘Open Source Development’, ‘url’=>’#’),
array(‘label’=>‘Microsoft Technology Development’, ‘url’=>’#’),
)),
array(‘label’=>‘Staffing’,
‘items’=>array(
array(‘label’=>‘Hire IPhone App Developer’, ‘url’=>’#’),
array(‘label’=>‘Hire IPad App Developer’, ‘url’=>’#’),
array(‘label’=>‘Hire Android App Developer’, ‘url’=>’#’),
array(‘label’=>‘Hire PHP Developer’, ‘url’=>’#’),
array(‘label’=>‘Hire HTML5 Developer’, ‘url’=>’#’),
)),
)),
array(‘label’=>‘Portfolio’, ‘url’=>array(’/site/visitors’)),
array(‘label’=>‘Case Studies’, ‘url’=>array(’/site/visitors’)),
array(‘label’=>‘Get A Quote’, ‘url’=>array(’/site/visitors’)),
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)
),
));
but it can’t work well and give a parse error like :
Parse error: syntax error, unexpected ‘‘items’’ (T_CONSTANT_ENCAPSED_STRING), expecting ‘)’ in C:\xampp\htdocs\mayur\demoapp\protected\views\layouts\main.php on line 41.
please give me solution for this error.
give me replay as soon as you can…
thank you.