frontend/components/SController.php
/**
     * Finds the Users model based on its primary key value.
     * If the model is not found, a 404 HTTP exception will be thrown.
     * @param integer $id
     * @return \common\models\Users $User
     * @throws NotFoundHttpException if the model cannot be found
     */
Finds the Users model based on its primary key value.
If the model is not found, a 404 HTTP exception will be thrown.
@param integer $id
@return \common\models\Users $User
@throws NotFoundHttpException if the model cannot be found
Finds the Users model based on its primary key value . If the model is not found a 404 HTTP exception will be thrown . @param integer $id @return \ common \ models \ Users $User @throws NotFoundHttpException if the model cannot be found
protected function findUserModel($id)
    {
        if (($User = Users::findIdentity($id)) !== null) {
            if (in_array($User->user_status, [Users::STATUS_ACTIVE, Users::STATUS_CONFIRMED])) {
                return $User;
            }
        }
        throw new NotFoundHttpException('The requested page does not exist.');
    }
protected function findUserModel ( $ id ) { if ( ( $ User = Users :: findIdentity ( $ id ) ) !== null ) { if ( in_array ( $ User -> user_status , [ Users :: STATUS_ACTIVE , Users :: STATUS_CONFIRMED ] ) ) { return $ User ; } } throw new NotFoundHttpException ( 'The requested page does not exist.' ) ; }
Finds the Users model based on its primary key value.
Finds the Users model based on its primary key value .