tag:blogger.com,1999:blog-5257555736106762701.post3269231249490358268..comments2024-02-15T05:46:49.798-08:00Comments on Learn Yii: Creating an instant search box for the CListViewNeil McGuiganhttp://www.blogger.com/profile/14122981831780837323noreply@blogger.comBlogger9125tag:blogger.com,1999:blog-5257555736106762701.post-22301645313021586282014-06-18T11:28:27.581-07:002014-06-18T11:28:27.581-07:00It's ok, i find the solution. This is my code ...It's ok, i find the solution. This is my code at index.php:<br /><br />pagination = array('pageSize' => 5);<br /> $dataProvider->sort = array('defaultOrder' => 'tgl_upload DESC');<br /> $this->widget('bootstrap.widgets.TbListView',array(<br /> 'dataProvider'=>$dataProvider,<br /> 'itemView'=>'_view',<br /> 'summaryText' => '', //untuk menghilangkan "Displaying 1 sd 10"<br /> 'sortableAttributes'=>array(<br /> 'tgl_upload'=>'Update Terbaru',<br /> ), <br /> )); <br />?><br /><br />Thank you. :)<br />Or do you have another solution??Nashrullahhttps://www.blogger.com/profile/11920040042116591030noreply@blogger.comtag:blogger.com,1999:blog-5257555736106762701.post-8306665296904002862014-06-18T01:29:01.881-07:002014-06-18T01:29:01.881-07:00Hello, your tutorial really help me, thank you ver...Hello, your tutorial really help me, thank you very much...<br />Now, how to combine "criteria" and "pagination"??<br /><br />I'm trying this, but not work:<br /> $criteria = new CDbCriteria(array(<br /> 'order' => 'id DESC',<br /> ));<br /> <br /> $dataProvider=new CActiveDataProvider('TblBarang', array(<br /> 'pagination'=>array('pageSize'=>4),<br /> 'criteria'=>$criteria,<br /> ));<br /><br /> $this->render('index',array(<br /> 'dataProvider'=>$model->search(),<br /> 'pagination'=>array('pageSize'=>4),<br /> 'criteria'=>$criteria,<br /> ));<br /><br />Please, help me...Nashrullahhttps://www.blogger.com/profile/11920040042116591030noreply@blogger.comtag:blogger.com,1999:blog-5257555736106762701.post-28898655492088459452012-08-20T04:02:10.267-07:002012-08-20T04:02:10.267-07:00Really nice job
I have a book table and a tags tab...Really nice job<br />I have a book table and a tags table. I would like to be able to search by tags. Could you help me please, how could I do that?Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-5257555736106762701.post-53346346160738684542012-07-13T09:18:34.824-07:002012-07-13T09:18:34.824-07:00Is it possible to add more than one of these boxes...Is it possible to add more than one of these boxes in order to filter by more than one element of the table?j_ott326https://www.blogger.com/profile/07579224671817014147noreply@blogger.comtag:blogger.com,1999:blog-5257555736106762701.post-25562880183523640422011-12-18T04:37:40.483-08:002011-12-18T04:37:40.483-08:00AmazingAmazingAnonymousnoreply@blogger.comtag:blogger.com,1999:blog-5257555736106762701.post-34424622596633017152011-11-13T08:59:52.206-08:002011-11-13T08:59:52.206-08:00I get some empty alert boxes popping up whenever I...I get some empty alert boxes popping up whenever I click on the objects returned from the search. I dont alert anything in my code, and this only occurs if I click on a returned result immediately after searching. has this issue ever come up for you?Roy Peckhamhttps://www.blogger.com/profile/13235731319989973097noreply@blogger.comtag:blogger.com,1999:blog-5257555736106762701.post-43365622783043666182011-10-17T03:53:02.685-07:002011-10-17T03:53:02.685-07:00Wow this is great. thanks very much for this tutor...Wow this is great. thanks very much for this tutorial..... really really helpful. :)SUESERVEhttps://www.blogger.com/profile/12973078979806868807noreply@blogger.comtag:blogger.com,1999:blog-5257555736106762701.post-3681925114449622762011-05-23T04:25:51.115-07:002011-05-23T04:25:51.115-07:00you have to choose isset($_GET['q']) metho...you have to choose isset($_GET['q']) method , otherwise it show undefine q error :)Kiranhttps://www.blogger.com/profile/06149591092836557737noreply@blogger.comtag:blogger.com,1999:blog-5257555736106762701.post-5506805013045079992011-05-23T03:48:30.869-07:002011-05-23T03:48:30.869-07:00show error => Undefined index: qshow error => Undefined index: qKiranhttps://www.blogger.com/profile/06149591092836557737noreply@blogger.com