Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
CGridView テーブルの更新ボタンを無効にしたい。やり方がわかりません。更新機能を削除するのではなく、更新ボタンを無効にするだけです。誰でもそれを行う方法を知っていますか? ありがとう
CButtonColumn の「テンプレート」プロパティを変更する必要があります。「テンプレート」のデフォルト値は「{update}{view}{delete}」です。だからあなたはこれをしなければなりません:
array( 'class' => 'CButtonColumn', 'template' => '{view}{delete}', ),