frontend/controllers/SiteController.php
/**
     * Displays homepage.
     * Created specifically for javascript to analyze the address bar and call a popup window with a login form
     * @return mixed
     */
Displays homepage.
Created specifically for javascript to analyze the address bar and call a popup window with a login form
@return mixed
Displays homepage . Created specifically for javascript to analyze the address bar and call a popup window with a login form @return mixed
public function actionSignup()
    {
        if (Yii::$app->params['self_hosted']) {
            $colleague_id = intval(Yii::$app->request->get('colleague_id'));
            if (!$colleague_id || !UserColleagues::findOne(['colleague_id' => $colleague_id])) {
                return $this->redirect(['/']);
            }
        }
        return $this->actionIndex();
    }
public function actionSignup ( ) { if ( Yii :: $ app -> params [ 'self_hosted' ] ) { $ colleague_id = intval ( Yii :: $ app -> request -> get ( 'colleague_id' ) ) ; if ( ! $ colleague_id || ! UserColleagues :: findOne ( [ 'colleague_id' => $ colleague_id ] ) ) { return $ this -> redirect ( [ '/' ] ) ; } } return $ this -> actionIndex ( ) ; }
Displays homepage.
Displays homepage .