lib/controllers/AppController.php
public function actionActivity()
    {
        // Yii::$app->response->baseInstructions['timestamp'] = time();
        Yii::$app->response->forceInstructions = true;
        Yii::$app->response->task = 'status';

        $auditClass = Yii::$app->classes['Audit'];
        $provider = $auditClass::activityDataProvider();
        $provider->handleInstructions($_POST);
        if (Yii::$app->request->object) {
            $provider->context = Yii::$app->request->object->primaryKey;
        }
        Yii::$app->response->baseInstructions = $provider->package->toArray();
    }
public function actionActivity()
    {
        // Yii::$app->response->baseInstructions['timestamp'] = time();
        Yii::$app->response->forceInstructions = true;
        Yii::$app->response->task = 'status';

        $auditClass = Yii::$app->classes['Audit'];
        $provider = $auditClass::activityDataProvider();
        $provider->handleInstructions($_POST);
        if (Yii::$app->request->object) {
            $provider->context = Yii::$app->request->object->primaryKey;
        }
        Yii::$app->response->baseInstructions = $provider->package->toArray();
    }
public function actionActivity ( ) { // Yii::$app->response->baseInstructions['timestamp'] = time(); Yii :: $ app -> response -> forceInstructions = true ; Yii :: $ app -> response -> task = 'status' ; $ auditClass = Yii :: $ app -> classes [ 'Audit' ] ; $ provider = $ auditClass :: activityDataProvider ( ) ; $ provider -> handleInstructions ( $ _POST ) ; if ( Yii :: $ app -> request -> object ) { $ provider -> context = Yii :: $ app -> request -> object -> primaryKey ; } Yii :: $ app -> response -> baseInstructions = $ provider -> package -> toArray ( ) ; }
[[@doctodo method_description:actionActivity]].
[[