The problem I’m seeing is that while the url for the top-level is correct (rbam/rbam/index), the urls for all sub-menu items are all missing the top-level “rbam” module context. So, for instance, the authItems page shows authItems/index, not rbam/authItems/index. If I visit the top-level page, then look at the menu items in question, they are correct.
I tried using the baseUrl config param, thinking that that could be used to force the rbam module context (since I suspect this is happening because the module context for the other pages is null), but I may not be specifying it correctly.
So, is there something I should be doing that I’m not? Can someone indicate a proper config setting to use in this case, to force the module of those menu entries?
/**
* Returns the controller that this widget belongs to.
* @return CController the controller that this widget belongs to.
*/
public function getController()
{
if($this->_owner instanceof CController)
return $this->_owner;
else
return Yii::app()->getController();
}
Within CMenu.php:
/**
* Initializes the menu widget.
* This method mainly normalizes the {@link items} property.
* If this method is overridden, make sure the parent implementation is invoked.
*/
public function init()
{
$this->htmlOptions['id']=$this->getId();
$route=$this->getController()->getRoute();
$this->items=$this->normalizeItems($this->items,$route,$hasActiveChild);
}