$where = array('status' => 1);
$this->view->active = $user->fetchAll($where);
$where1 = array('status' => 0);
$this->view->inactive = $user->fetchAll($where1);
view.phtmlで
私はこれらの2つのforeachを持っています
foreach($this->active as $active){
echo $active->uid;
echo $active->uname;
}
foreach($this->inactive as $inactive_va){
echo $inactive_va->uid;
echo $inactive_va->uname;
}
上記のコードは、非アクティブと非アクティブの両方のアクティブなレコードのみを返します。これらを何を変更する必要がありますか。