Yii Framework Forum: How to set default parameters for all widgets? - Yii Framework Forum

Jump to content

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

How to set default parameters for all widgets? Rate Topic: -----

#1 User is offline   smck 

  • Newbie
  • Yii
  • Group: Members
  • Posts: 18
  • Joined: 12-September 11

Posted 26 October 2011 - 09:41 AM

Hi, is it possible to set parameters for widgets to replace default values?
I am looking for something like component configurating in config/main.php but for widgets:

        // apply this default settings to all CGridView widgets
        'zii.widgets.grid.CGridView'=>array(
            'itemsCssClass' => 'myClass',
        ),


I just don't want to set some default values for all widgets manually.
0

#2 User is offline   Mike 

  • Elite Member
  • PipPipPipPipPip
  • Yii
  • Group: Members
  • Posts: 3,016
  • Joined: 06-October 08
  • Location:Upper Palatinate

Posted 26 October 2011 - 10:46 AM

Check this:
http://www.yiiframew...idgets-globally
1

#3 User is offline   smck 

  • Newbie
  • Yii
  • Group: Members
  • Posts: 18
  • Joined: 12-September 11

Posted 26 October 2011 - 02:02 PM

View PostMike, on 26 October 2011 - 10:46 AM, said:


Thank you, exacly what i was looking for. :)
0

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users