0

I am new to yii framework. I have spent a lot research about my problem, and I followed the tutorial on link and it did not work, my CButtonColumn could not call js function.

Hope anyone help me.

Regards, Manohar

Telvin Nguyen
  • 3,569
  • 4
  • 25
  • 39
Manohar Bomma
  • 311
  • 1
  • 3
  • 17

1 Answers1

0

The code you linked looks good. Here is the distilled version:

'columns'=>[
    'class'=>'CButtonColumn',
    'template'=>'{view}',
    'buttons'=>[
        'view'=>['click'=>'some_js_function']
    ]
]

Relevant information: CButtonColumn#buttons-detail

Do you get any js-errors perhaps? If you are using ajax, as in the link you gave, check the network-tab (in chrome developer tools or similar) and see if the page request is being made.

ippi
  • 9,857
  • 2
  • 39
  • 50