Hi,
I’m new to yii and I wonder if there’s a way to do:
this:
$model = new User();
$model->first_name = ‘John’
$model->load()
print_r($model->attributes)
instead of:
$model = new User();
$cri = new Criteria()
$cri->condition = ‘first_name=:firstnamevar’;
$cri->params = array(’:firstnamevar’=>‘John’);
$modelData = $model->find($cri);
print_r($modelData->attributes)
Any advice would be helpful, thanks!