- 01
- 02
- 03
- 04
- 05
- 06
- 07
- 08
- 09
- 10
- 11
- 12
<?php
$dataProvider = new CActiveDataProvider('User', array(
'criteria'=>array(
'condition' => 'id = ' . $id,
),
));
$regdata = $dataProvider->getData();
if (is_array($regdata)) $regdata = current($regdata);
//....
$this->redirect(Yii::app()->createUrl('user/profile'));
guest 11.03.2014 11:32 # +3