controllers/PprsPersonController.php
public function actionCreateUserAccount($pprs_id){
        $model = $this->loadModel($pprs_id);
        $r = $model->createUser();
        if($r !== true){
            $this->redirect(array('view', 'pprs_id' => $pprs_id, 'ajax'=>false, 'errors' => $r));
        }else{
            $this->redirect(array('/user/admin/view', 'id' => $model->getUserId()));
        }
    }
public function actionCreateUserAccount($pprs_id){
        $model = $this->loadModel($pprs_id);
        $r = $model->createUser();
        if($r !== true){
            $this->redirect(array('view', 'pprs_id' => $pprs_id, 'ajax'=>false, 'errors' => $r));
        }else{
            $this->redirect(array('/user/admin/view', 'id' => $model->getUserId()));
        }
    }
public function actionCreateUserAccount ( $ pprs_id ) { $ model = $ this -> loadModel ( $ pprs_id ) ; $ r = $ model -> createUser ( ) ; if ( $ r !== true ) { $ this -> redirect ( array ( 'view' , 'pprs_id' => $ pprs_id , 'ajax' => false , 'errors' => $ r ) ) ; } else { $ this -> redirect ( array ( '/user/admin/view' , 'id' => $ model -> getUserId ( ) ) ) ; } }
create fro person data user account and redirect to it
@param int $pprs_id
create fro person data user account and redirect to it