dougou8458 2014-07-10 07:30
浏览 52

我收到错误:未定义属性“CListView.afterAjaxUpdate”。 在yii中使用clistview中的afterAjaxUpdate时

I have made a simple list view to show a list of posts. I have attached a number of buttons in each post and have attached click function to each of those buttons. I am trying to bind the click events those buttons in the post with afterAjaxUpdate property of the clistview. But I get the error: Property "CListView.afterAjaxUpdate " is not defined.

My clistview setup is as follows:

$this->widget('zii.widgets.CListView', array(
        'dataProvider'=>$posts,
        'afterAjaxUpdate '=>'clickEvents',
        'itemView'=>'_post',
        'summaryText'=>'',
        'id'=>'posts-list',
    ));

I get that error when using both 1.14 and 1.15. I checked the class file for clistview and I can see the property listed. Anything wrong with my code?

  • 写回答

0条回答 默认 最新

    报告相同问题?

    悬赏问题

    • ¥15 扩散模型sd.webui使用时报错“Nonetype”
    • ¥15 stm32流水灯+呼吸灯+外部中断按键
    • ¥15 将二维数组,按照假设的规定,如0/1/0 == "4",把对应列位置写成一个字符并打印输出该字符
    • ¥15 NX MCD仿真与博途通讯不了啥情况
    • ¥15 win11家庭中文版安装docker遇到Hyper-V启用失败解决办法整理
    • ¥15 gradio的web端页面格式不对的问题
    • ¥15 求大家看看Nonce如何配置
    • ¥15 Matlab怎么求解含参的二重积分?
    • ¥15 苹果手机突然连不上wifi了?
    • ¥15 cgictest.cgi文件无法访问