Yii Framework Forum: Dropdownlist - Yii Framework Forum

Jump to content

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

Dropdownlist menampilkan field sesuai jumlah yang dipilih pada dropdownlist Rate Topic: -----

#1 User is offline   santi maria 

  • Newbie
  • Yii
  • Group: Members
  • Posts: 5
  • Joined: 17-April 13

Posted 04 July 2013 - 05:38 AM

buat agan2 semuanya
saya minta bantuannya nih.
gimana sih caranya untuk menampilkan field sesuai jumlah yang dipilih pada driopdownlist
0

#2 User is offline   secharix 

  • Newbie
  • Yii
  • Group: Members
  • Posts: 4
  • Joined: 10-January 13
  • Location:Indonesia-Rest of the world

Posted 08 July 2013 - 02:08 AM


$limit  = [size=2]$_POST['limit'][/size]

$model = PostCategory::model();
    $record = $model->with(array(
      'posts'=>array(
         'order'=>'posts.createTime DESC',
      ))->findByPK($id,
                 array('limit'=>$limit,'together'=>true) // adding this works
    );




pakai limit aja gan, contoh limitnya di post dalam hal ini $_POST['limit']...yg bisa di request dari menunya




Toruh maruhur, dear marhasoman
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