Home >Backend Development >PHP Tutorial >YII2 使用gii生成增删改查后,怎么去掉删除和更新按钮

YII2 使用gii生成增删改查后,怎么去掉删除和更新按钮

WBOY
WBOYOriginal
2016-06-06 20:31:331170browse

如下所示的按钮
YII2 使用gii生成增删改查后,怎么去掉删除和更新按钮

回复内容:

如下所示的按钮
YII2 使用gii生成增删改查后,怎么去掉删除和更新按钮

['class' => 'yii\grid\ActionColumn', 'template' => '{view}']

参考

ps: 不看手册的都烧死~

没用过gii - -~ 酱油路过!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn