Skip to content

Commit 6dbc293

Browse files
committed
copilot review fixes
1 parent ba71d89 commit 6dbc293

File tree

7 files changed

+13
-12
lines changed

7 files changed

+13
-12
lines changed

docs/en/contributing/documentation.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ Github and we will consider creating a skeleton folder for it. The following
2929
sections are the first one you should consider translating as these
3030
files don't change often:
3131

32-
```markdown
32+
```text
3333
- index.md
3434
- intro.md
3535
- quickstart.md
@@ -604,5 +604,6 @@ jq empty toc_en.json
604604
605605
```shell
606606
:::
607+
```
607608
608609
If the CI checks fail, review the error messages and fix the issues before requesting a review.

docs/en/tutorials-and-examples/cms/articles-controller.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ class ArticlesController extends AppController
2020

2121
Now, let's add an action to our controller. Actions are controller methods that
2222
have routes connected to them. For example, when a user requests
23-
**<<www.example.com/articles>/index>** (which is also the same as
23+
**<www.example.com/articles/index>** (which is also the same as
2424
**<www.example.com/articles>**), CakePHP will call the `index` method of your
2525
`ArticlesController`. This method should query the model layer, and prepare
2626
a response by rendering a Template in the View. The code for that action would
@@ -44,9 +44,9 @@ class ArticlesController extends AppController
4444
```
4545

4646
By defining function `index()` in our `ArticlesController`, users can now
47-
access the logic there by requesting **<<www.example.com/articles>/index>**.
47+
access the logic there by requesting **<www.example.com/articles/index>**.
4848
Similarly, if we were to define a function called `foobar()`, users would be
49-
able to access that at **<www.example.com/articles>/foobar**. You may be tempted
49+
able to access that at **<www.example.com/articles/foobar>**. You may be tempted
5050
to name your controllers and actions in a way that allows you to obtain specific
5151
URLs. Resist that temptation. Instead, follow the [CakePHP Conventions](../../intro/conventions)
5252
creating readable, meaningful action names. You can then use
@@ -120,7 +120,7 @@ When specifying URLs in CakePHP, it is recommended that you use arrays or
120120
leverage the reverse routing features CakePHP offers.
121121

122122
At this point, you should be able to point your browser to
123-
**<http://localhost:8765/articles>/index**. You should see your list view,
123+
**<http://localhost:8765/articles/index>**. You should see your list view,
124124
correctly formatted with the title and table listing of the articles.
125125

126126
## Create the View Action

docs/en/tutorials-and-examples/cms/tags-and-users.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,7 @@ by the tags they used. For this feature we'll implement a route, controller
156156
action, and finder method to search through articles by tag.
157157

158158
Ideally, we'd have a URL that looks like
159-
**<http://localhost:8765/articles>/tagged/funny/cat/gifs**. This would let us
159+
**<http://localhost:8765/articles/tagged/funny/cat/gifs>**. This would let us
160160
find all the articles that have the 'funny', 'cat' or 'gifs' tags. Before we
161161
can implement this, we'll add a new route. Your **config/routes.php** (with
162162
the baked comments removed) should look like:
@@ -187,7 +187,7 @@ $routes->scope('/', function (RouteBuilder $builder) {
187187
The above defines a new 'route' which connects the **/articles/tagged/** path,
188188
to `ArticlesController::tags()`. By defining routes, you can isolate how your
189189
URLs look, from how they are implemented. If we were to visit
190-
**<http://localhost:8765/articles>/tagged**, we would see a helpful error page
190+
**<http://localhost:8765/articles/tagged>**, we would see a helpful error page
191191
from CakePHP informing you that the controller action does not exist. Let's
192192
implement that missing method now. In **src/Controller/ArticlesController.php**
193193
add the following:

docs/ja/installation.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -536,7 +536,7 @@ IIS に htaccess のルールをインポートすることもできます。
536536
これをするには、以下のステップを踏んでください:
537537

538538
1. URL [Rewrite Module 2.0](https://www.iis.net/downloads/microsoft/url-rewrite)
539-
をインストールするために、\`Microsoftの Web Platform Installer \<<https://www.microsoft.com/web/downloads/platform.aspx>\>\`\_
539+
をインストールするために、[Microsoft の Web Platform Installer](https://www.microsoft.com/web/downloads/platform.aspx)
540540
を使うか、直接ダウンロードします。([32ビット](https://download.microsoft.com/download/D/8/1/D81E5DD6-1ABB-46B0-9B4B-21894E18B77F/rewrite_x86_en-US.msi) /
541541
[64ビット](https://download.microsoft.com/download/1/2/8/128E2E22-C1B9-44A4-BE2A-5859ED1D4592/rewrite_amd64_en-US.msi))
542542
2. CakePHP のルートフォルダーに web.config という名前の新しいファイルを作成してください。

docs/ja/tutorials-and-examples/blog/part-two.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ class ArticlesController extends AppController
7373
7474
では、コントローラーにひとつのアクションを追加してみましょう。アクションは、
7575
アプリケーションの中のひとつの関数か、インターフェイスをあらわしています。
76-
例えば、ユーザーが <<www.example.com/articles/>index> (<www.example.com/articles/> と同じです)
76+
例えば、ユーザーが <www.example.com/articles/index> (<www.example.com/articles/> と同じです)
7777
をリクエストした場合、投稿記事の一覧が表示されると期待するでしょう。
7878
このアクションのコードは次のようになります。 :
7979

docs/ja/tutorials-and-examples/bookmarks/intro.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -253,7 +253,7 @@ class User extends Entity
253253
次は、タグでのブックマークを検索するため、ルート、コントローラーのアクション、finder
254254
メソッドを実装します。
255255

256-
理想的には、 **<http://localhost:8765/bookmarks>/tagged/funny/cat/gifs**
256+
理想的には、 **<http://localhost:8765/bookmarks/tagged/funny/cat/gifs>**
257257
のような URL にしたいと思います。この URL は、 'funny', 'cat', もしくは 'gifs'
258258
タグが付いたブックマークすべてを検索することを意図しています。これを実装する前に、
259259
新しいルートを追加します。 **config/routes.php** を以下のようにしてください。 :
@@ -295,7 +295,7 @@ Router::scope('/', function ($routes) {
295295
上記は、 **/bookmarks/tagged/** パスを `BookmarksController::tags()` に接続する
296296
新しい「ルート」を定義します。ルートを定義することによて、 URL の見た目と、
297297
それらどのように実装されたかを分離することができます。
298-
**<http://localhost:8765/bookmarks>/tagged** にアクセスした場合、CakePHP から
298+
**<http://localhost:8765/bookmarks/tagged>** にアクセスした場合、CakePHP から
299299
コントローラーのアクションがないことを伝える役に立つエラーページが表示されます。
300300
今から存在しないメソッドを実装してみましょう。 **src/Controller/BookmarksController.php**
301301
に以下を追加してください。 :

docs/ja/tutorials-and-examples/cms/articles-controller.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ class ArticlesController extends AppController
1818
```
1919

2020
それでは、コントローラーにアクションを追加しましょう。アクションは、ルートに接続させる
21-
コントローラーのメソッドです。例えば、ユーザーが **<<www.example.com/articles>/index>**
21+
コントローラーのメソッドです。例えば、ユーザーが **<www.example.com/articles/index>**
2222
(**<www.example.com/articles>** と同じ) をリクエストした場合、CakePHP は、
2323
`ArticlesController``index` メソッドを呼びます。このメソッドは、モデル層に問い合わせ、
2424
ビューでテンプレートを描画してレスポンスを準備する必要があります。そのアクションのコードは、

0 commit comments

Comments
 (0)