0

I've extended the default CMenu, When I want to use this extended version of CMenu I do the following: $this->widget('application.components.translateCMenu',....

This works for me, but in most of the CRUD generated view files the menuwidget is 'prepared' in an other way:

$this->menu=array()

I want to force yii to use my extended CMenu class instead of the default CMenu widget class for rendering the (operations) menu. How am I able to accomplish this?

user1345112
  • 182
  • 1
  • 2
  • 14

1 Answers1

0

If you want the auto-generated code to be custom in anyway then you would need to write your own Gii templates, which is very simple, and often recommended, so you can have the auto-generated code to fit your personal/company style.

Asgaroth
  • 4,274
  • 3
  • 20
  • 36