Yii view CGridView implements operation button definition address example
The example of this article describes the method of defining the address of the operation button in the Yii view CGridView. Share it with everyone for your reference, the details are as follows:
<?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', //注意URL规则 'updateButtonUrl'=>'Yii::app()->controller->createUrl("updaterole",array("id"=>$data->primaryKey))', 'deleteConfirmation'=>'确认删除',//删除操作弹框提示的信息 'buttons'=>array( 'view'=>array('visible'=>'false'), //注意URL规则, 'dalete'=>array('url'=>'Yii::app()->controller->createUrl("deleterole",array("id"=>$data->primaryKey))') ), ), ), )); ?>
I hope this article will be helpful to everyone’s PHP program design based on the Yii framework.
For more Yii view CGridView implementation operation button definition address examples and related articles, please pay attention to the PHP Chinese website!

Hot AI Tools

Undresser.AI Undress
AI-powered app for creating realistic nude photos

AI Clothes Remover
Online AI tool for removing clothes from photos.

Undress AI Tool
Undress images for free

Clothoff.io
AI clothes remover

AI Hentai Generator
Generate AI Hentai for free.

Hot Article

Hot Tools

Notepad++7.3.1
Easy-to-use and free code editor

SublimeText3 Chinese version
Chinese version, very easy to use

Zend Studio 13.0.1
Powerful PHP integrated development environment

Dreamweaver CS6
Visual web development tools

SublimeText3 Mac version
God-level code editing software (SublimeText3)

Hot Topics

