Jamie Whittingham
Active Member
Hi guys,
I have a Ext Im writing and for some reason it's glitching on the menu ......
Here is the code
the issue is its highlighting the Ext menu not management toools and im not sure how to correct it.
thanks
I have a Ext Im writing and for some reason it's glitching on the menu ......
Here is the code
PHP:
public function _addMenuItem(array $items = array())
{
if (strpos(Yii::app()->getController()->getRoute(), 'ext_backend_area_menu_items_content') === 0) {
$items['extend']['active'] = array('extensions', 'theme', 'languages');
}
$newItems = array();
$newItemsToAdd = array(
array(
'name' => Yii::t('app', 'Management Tools'),
'icon' => 'glyphicon-th',
'active' => array('ext_backend_area_menu_items_content/index'), // this
'route' => Yii::app()->createAbsoluteUrl('ext_backend_area_menu_items_content/index', array('url' => 'management_tools')),
//'linkOptions' => array('target' => '_blank'),
),
);
foreach ($items as $name => $value) {
$newItems[$name] = $value;
if ($name == 'api-=') {
foreach ($newItemsToAdd as $idx => $ni) {
$newItems['fb_group_' . $idx] = $ni;
}
}
}
if (!isset($newItems['fb_group_0'])) {
foreach ($newItemsToAdd as $idx => $ni) {
$newItems['fb_group_' . $idx] = $ni;
}
}
return $newItems;
}
the issue is its highlighting the Ext menu not management toools and im not sure how to correct it.
thanks