Yii Framework Forum: Pencarian Berdasar Kategori - Yii Framework Forum

Jump to content

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

Pencarian Berdasar Kategori Rate Topic: -----

#1 User is offline   mrkoeh 

  • Junior Member
  • Pip
  • Yii
  • Group: Members
  • Posts: 42
  • Joined: 31-October 12
  • Location:Indonesia

Posted 15 January 2013 - 09:00 PM

gan,
ane nyoba ngubah pencarian di yii dengan dropdownlist
script awal :
<div class="row">
		<?php echo $form->label($model,'no_akun'); ?>
		<?php echo $form->textField($model,'no_akun',array('size'=>10,'maxlength'=>10)); ?>
	</div>


ubah :
<?php $data = CHtml::listData( TJurnal::model()->findAll(),'no_akun','keterangan' ); ?>
	<div class="row">
		<?php echo $form->label($model,'no_akun'); ?>>
		<?php echo $form->dropDownList($model,'no_akun', $data);?>
	</div>


ada yg bisa bantu???
0

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users