I am try to add new menu and rename the exist menu name .but i m unable to add the menu …can any one guide me how i can add any example for that …
i need to change the exist Dashboard name to My Dashboard
I found two function for that in : core/Menu/MenuAbstract.php page. …
Rename:
public function rename($mainMenuOriginal, $subMenuOriginal, $mainMenuRenamed, $subMenuRenamed)
{
$this->renames[] = array($mainMenuOriginal, $subMenuOriginal,
$mainMenuRenamed, $subMenuRenamed);
}
Add new name:
public function rename($mainMenuOriginal, $subMenuOriginal, $mainMenuRenamed, $subMenuRenamed)
{
$this->renames[] = array($mainMenuOriginal, $subMenuOriginal,
$mainMenuRenamed, $subMenuRenamed);
}
Actually i did not get that file from where u r getting the menu name ie:dashboard,visitor…etc…It will be great help if u can help me how i can solve that issue…
yes i want to rename on top…also sub menu …if possible tell me proper how i can do this so that it will improve my knowledge also …which file i need to modified…
You want to do the second part and generate a menu.
In those configure methods you can call “$menu->rename($mainMenuOriginal, $subMenuOriginal, $mainMenuRenamed, $subMenuRenamed)” or even “$menu->remove()”