How to change default 'No result found' text according to you need in Yii framework


"emptyText" property. 
 "emptyText" =>'some text here'
--------------------------------------------------------
$this->widget('zii.widgets.CListView', array(
                'dataProvider' => $dataProvider,
                'itemView' => '/pageview/_view',
                'emptyText' => 'some result'
            ));

same in CGridList
$this->widget('zii.widgets.grid.CGridView',array(
'id'=>'my-grid',
'dataProvider'=>$model->search(),
'filter'=>$model,
'emptyText' => 'some result'
'columns'=>array(
'id',
'title',

));
--------------------------------------------------------
Source: http://www.bmweb.co.in/how-to-change-default-no-result-found-text-according-to-you-need-in-yii-framework
Share on Google Plus

About Ram Pukar

This is a short description in the author block about the author. You edit it by entering text in the "Biographical Info" field in the user admin panel.
    Blogger Comment

0 comments:

Post a Comment