Yii ajaxlink in partial

前端 未结 3 1916
南方客
南方客 2021-01-07 09:45

I\'m using Yii framework and have small problem. Then I include to the partial CHtml::ajaxLink, link stopping work as ajax, standart click is raised and per

3条回答
  •  迷失自我
    2021-01-07 10:48

    Just a supposition, but turn processOutput on when using partialRender with javascript. It's the fourth parameter when calling renderPartial:

    $this->renderPartial('_view',array(params...),false,true)

    ProcessOutput allows you to also load javascript when rendering with asynchronous calls or other stuff.

提交回复
热议问题