T
T
The Dragger2015-05-07 12:21:57
Yii
The Dragger, 2015-05-07 12:21:57

How to detect error in CListView widget in yii1?

$this->widget('zii.widgets.CListView', array(
                    'dataProvider'=>$dataProvider,
                    'itemView'=>'_detail',
));

in the _detail file
$this->widget('zii.widgets.CDetailView', array(
    'data' => $data,
    'attributes' => array(
        'id',
        'district_id',
    ),
));

Error in browser require(): Filename cannot be empty

Answer the question

In order to leave comments, you need to log in

1 answer(s)
P
Pavel, 2015-06-16
@ambrous

The path to the _detail.php file is incorrect or it is in a different folder.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question