public function actionImport()
    {
        $result = ['error' => Yii::t('podium/view', 'Error')];

        if (Yii::$app->request->isPost) {
            $drop = Yii::$app->request->post('drop');
            if ($drop !== null) {
                $installation = new Installation();
                if ((is_bool($drop) && $drop) || $drop === 'true') {
                    $result = $installation->nextDrop();
                } else {
                    $result = $installation->nextStep();
                }
            }
        }

        return Json::encode($result);
    }
public function actionImport()
    {
        $result = ['error' => Yii::t('podium/view', 'Error')];

        if (Yii::$app->request->isPost) {
            $drop = Yii::$app->request->post('drop');
            if ($drop !== null) {
                $installation = new Installation();
                if ((is_bool($drop) && $drop) || $drop === 'true') {
                    $result = $installation->nextDrop();
                } else {
                    $result = $installation->nextStep();
                }
            }
        }

        return Json::encode($result);
    }
public function actionImport ( ) { $ result = [ 'error' => Yii :: t ( 'podium/view' , 'Error' ) ] ; if ( Yii :: $ app -> request -> isPost ) { $ drop = Yii :: $ app -> request -> post ( 'drop' ) ; if ( $ drop !== null ) { $ installation = new Installation ( ) ; if ( ( is_bool ( $ drop ) && $ drop ) || $ drop === 'true' ) { $ result = $ installation -> nextDrop ( ) ; } else { $ result = $ installation -> nextStep ( ) ; } } } return Json :: encode ( $ result ) ; }
Importing the databases structures.
@return string
Importing the databases structures .