Quantcast
Channel: Yii Framework Forum
Viewing all articles
Browse latest Browse all 18717

Difference Between Activerecord And Model()

$
0
0
1.
$data=Vehicles::model()->findAll();
$this->render('index',array('data'=>$data));


2.

$data=new CActiveDataProvider('vehicles');
$this->render('index',array('data'=>$data));

both are same? or these have any difference? & in which situation i have to use these? please help.

Viewing all articles
Browse latest Browse all 18717

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>