私は yii フレームワークが初めてで、1 つのモジュールで yii Web アプリケーションを作成しました。今私の質問は、私のモジュールの私のモジュールにサンプルデータを追加したことです。私は列名、部門、およびアクティブを持っています。アクティブ= 0のデータのみをグリッドビューにレンダリングしたいのですが、誰か助けてもらえますかデータ レンダリング クエリの変更と条件の追加方法
<div class="block">
<div class="content">
<h2 class="title">Users's details</h2>
<div class="inner">
<?php $this->widget('zii.widgets.CDetailView', array(
'data' => $model,
'attributes' => array(
'user_id',
'user_name',
'userpass',
'userdept',
'active',
),
'itemTemplate' => "<tr class=\"{class}\"><td style=\"width: 120px\"><b>{label}</b></td><td>{value}</td></tr>\n",
'htmlOptions' => array(
'class' => 'table',
),
)); ?>
</div>
</div>
前もって感謝します。