hi, by default, my app was started using the almighty gii…
now I wish to add some new pages without using gii,
I created a controller e.g CompaniesController. it has a basic accessRules() and an actionIndex. now my question is, let’s say I wanna add an extra link at the ‘main.php’ of the layouts called ‘Companies’, how will I link that to my index.php dynamically?
by default, yii generated code has this things
<div id="mainmenu">
<?php $this->widget('zii.widgets.CMenu',array(
'items'=>array(
array('label'=>'Home', 'url'=>array('/site/index')),
array('label'=>'About', 'url'=>array('/site/page', 'view'=>'about')),
array('label'=>'Contact', 'url'=>array('/site/contact')),
and then previously, I added this link
array('label'=>'My Companies', 'url'=>array('/wsmembersdetails/index'),'visible'=>!Yii::app()->user->isGuest),
that thing above shows a url array made up of a model and the actionIndex correct ?
so how will I add a new link if it doesn’t really have a model ?