yii\gii\controllers\DefaultController::actionDiff PHP Метод

actionDiff() публичный Метод

public actionDiff ( $id, $file )
    public function actionDiff($id, $file)
    {
        $generator = $this->loadGenerator($id);
        if ($generator->validate()) {
            foreach ($generator->generate() as $f) {
                if ($f->id === $file) {
                    return $this->renderPartial('diff', ['diff' => $f->diff()]);
                }
            }
        }
        throw new NotFoundHttpException("Code file not found: {$file}");
    }