mirror of
https://github.com/yiisoft/yii2.git
synced 2025-08-26 06:15:19 +08:00
Japanese Documentation updated [ci skip] (#11881)
* Japanese Documentation updated [ci skip] * docs/guide-ja/input-multiple-models.md [ci skip]
This commit is contained in:

committed by
Alexander Makarov

parent
7126209037
commit
fa64ba29e1
@ -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';
|
||||
|
@ -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
|
||||
```
|
||||
|
||||
|
@ -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
|
||||
|
||||
|
Reference in New Issue
Block a user