diff --git a/docs/guide-ja/input-multiple-models.md b/docs/guide-ja/input-multiple-models.md index 68ef5ee583..bcf2798e80 100644 --- a/docs/guide-ja/input-multiple-models.md +++ b/docs/guide-ja/input-multiple-models.md @@ -24,10 +24,14 @@ class UserController extends Controller public function actionUpdate($id) { $user = User::findOne($id); + if (!$user) { + throw new NotFoundHttpException("ユーザが見つかりませんでした。"); + } + $profile = Profile::findOne($id); - if (!isset($user, $profile)) { - throw new NotFoundHttpException("ユーザが見つかりませんでした。"); + if (!$profile) { + throw new NotFoundHttpException("ユーザのプロファイルがありません。"); } $user->scenario = 'update'; diff --git a/docs/guide-ja/start-installation.md b/docs/guide-ja/start-installation.md index e1589c0534..0439ac17c2 100644 --- a/docs/guide-ja/start-installation.md +++ b/docs/guide-ja/start-installation.md @@ -39,7 +39,7 @@ Composer は `composer self-update` コマンドを実行してアップデー Composer がインストールされたら、ウェブからアクセスできるフォルダで下記のコマンドを実行することによって Yii をインストールすることが出来ます。 ```bash -composer global require "fxp/composer-asset-plugin:~1.1.1" +composer global require "fxp/composer-asset-plugin:~1.2.0" composer create-project --prefer-dist yiisoft/yii2-app-basic basic ``` diff --git a/docs/guide-ja/tutorial-yii-integration.md b/docs/guide-ja/tutorial-yii-integration.md index 4bfd46a4ed..cea1c1a6f3 100644 --- a/docs/guide-ja/tutorial-yii-integration.md +++ b/docs/guide-ja/tutorial-yii-integration.md @@ -77,7 +77,7 @@ Yii は数多くの優れた機能を提供していますので、サードパ サードパーティのシステムが Composer を使って依存を管理している場合は、単に下記のコマンドを実行すれば Yii をインストールすることが出来ます。 - composer global require "fxp/composer-asset-plugin:~1.1.1" + composer global require "fxp/composer-asset-plugin:~1.2.0" composer require yiisoft/yii2 composer install