Home>
<?php $this->widget ("zii.widgets.grid.cgridview", array (
  "id" =>"mem-sub-grid",  "dataprovider" =>$model,  "columns" =>array (
    "zpc_catname",    array ("name" =>"inputtime",        "value" =>"date (" y-m-d h:m ", $data->inputtime)",        "htmloptions" =>array ("class" =>"t_c"),        ),    array (
      "class" =>"cbuttoncolumn",      //Note the URL rules
      "updatebuttonurl" =>"yii ::app ()->controller->createurl (" updaterole ", array (" id "=>$data->primarykey))",      "deleteconfirmation" =>"Confirm delete", //Delete operation popup message
      "buttons" =>array (
        "view" =>array ("visible" =>"false"),        //Note the url rules,        "dalete" =>array ("url" =>"yii ::app ()->controller->createurl (" deleterole ", array (" id "=>$data->primarykey)) ")
      ),    ),  ),));
?>
php
  • Previous Android latest version development environment to build graphic tutorials
  • Next Summary of Bootstrap's most commonly used JS plugin series (picture carousel, tag switching, etc)