Wednesday, January 21, 2015

Add Ajax in Grid view YII

Standard


Here is simple example to how create  Ajax link on YII CGridview


array(
        'name'='Attribute name',
        'header'='Attribute title',
        'value'='CHtml::ajaxLink(
            "link",
             array("url/action"),
              array(
              "update"="#Ajaxvenu",
                 "type"="POST",
                     "data" =; array(
                     "POST[atttribute]" = $data->atttributename,

                       ),                              
                   ),

 )',

// view this 

1 comment:

  1. If you are looking for a heating and air conditioning company in the Tulsa County area, Our professional technicians can help you select, install, and maintain equipment to assure efficiency, reliability, and comfort over the lifetime of your products
    MLM Script

    ReplyDelete