controllers/PprsPersonController.php
public function actionView($pprs_id, $ajax = false, $errors = false)
    {
        $model = $this->loadModel($pprs_id);
        if ($ajax) {
            $this->renderPartial('_view-relations_grids',
                    array(
                        'modelMain' => $model,
                        'ajax' => $ajax,
                        )
                    );
        } else {
            $this->render('view', array('model' => $model,'errors'=>$errors));
        }
    }
public function actionView($pprs_id, $ajax = false, $errors = false)
    {
        $model = $this->loadModel($pprs_id);
        if ($ajax) {
            $this->renderPartial('_view-relations_grids',
                    array(
                        'modelMain' => $model,
                        'ajax' => $ajax,
                        )
                    );
        } else {
            $this->render('view', array('model' => $model,'errors'=>$errors));
        }
    }
public function actionView ( $ pprs_id , $ ajax = false , $ errors = false ) { $ model = $ this -> loadModel ( $ pprs_id ) ; if ( $ ajax ) { $ this -> renderPartial ( '_view-relations_grids' , array ( 'modelMain' => $ model , 'ajax' => $ ajax , ) ) ; } else { $ this -> render ( 'view' , array ( 'model' => $ model , 'errors' => $ errors ) ) ; } }
show person data
@param int $pprs_id
@param boolean $ajax
@param string $errors html created by CHtml::errorSummary()
show person data