CActiveDataProvider
を使用せずにデータを直接取得する方法はCGridView
?
Controller.php
public function actionList($id)
{
$criteria = new CDbCriteria;
$dataProvider=new CActiveDataProvider('Events', array(
'criteria' => $criteria
));
$this->render('list',array(
'dataProvider'=>$dataProvider,
));
}
View.php:
<?php echo $dataProvider->name; ?> // Return Error