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)) ")
), ), ),));
?>
Related articles
- Yii frame view, view layout, view data block operation example
- Example analysis of layout files in Yii framework
- Advanced use of View view in PHP Yii framework
- Detailed methods to create and render views in PHP's Yii framework
- Method for operating view js in Yii controller
- Implementation method of custom paging for Yii view operation
- YII view integration kindeditor extension method
- Analysis of Yii2 Frame View Operation and Layout Usage
- Yii view CGridView list usage example analysis
- YII framework study notes namespace, operation response and view operation examples
- Example of dynamic switching operation of Yii framework layout file
Trends
- php - coincheck api authentication doesn't work
- php - i would like to introduce the coincheck api so that i can make payments with bitcoin on my ec site
- [php] i want to get account information using coincheck api
- python - you may need to restart the kernel to use updated packages error
- the emulator process for avd pixel_2_api_29 was killed occurred when the android studio emulator was started, so i would like to
- python 3x - typeerror: 'method' object is not subscriptable
- javascript - how to check if an element exists in puppeteer
- xcode - pod install [!] no `podfile 'found in the project directory
- i want to call a child component method from a parent in vuejs
- vuejs - [vuetify] unable to locate target [data-app] i want to unit test to avoid warning