Skip to content

Add a missing colon and fix misprint in the docs #1091

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Sep 5, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions src/LiveComponent/doc/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -1087,7 +1087,7 @@ the ``#[LiveArg()]`` attribute::
}

Normally, the argument name in PHP - e.g. ``$id`` - should match the
argument named used in Twig ``id={{ item.id }}``. But if they don't
argument name used in Twig ``id={{ item.id }}``. But if they don't
match, you can pass an argument to ``LiveArg``, like we did with ``itemName``.

Actions and CSRF Protection
Expand Down Expand Up @@ -1153,7 +1153,7 @@ the component now extends ``AbstractController``! That is totally
allowed, and gives you access to all of your normal controller
shortcuts. We even added a flash message!

.. _files
.. _files:

Uploading files
---------------
Expand All @@ -1172,7 +1172,7 @@ to handle the files and tell the component when the file should be sent:
<button data-action="live#action" data-action-name="files|my_action" />
</p>

To send a file (or files) with an action use `files` modifier.
To send a file (or files) with an action use ``files`` modifier.
Without an argument it will send all pending files to your action.
You can also specify a modifier parameter to choose which files should be upload.

Expand All @@ -1191,7 +1191,7 @@ You can also specify a modifier parameter to choose which files should be upload
<button data-action="live#action" data-action-name="files|myAction" />
</p>

The files will be available in a regular `$request->files` files bag::
The files will be available in a regular ``$request->files`` files bag::

// src/Components/FileUpload.php
namespace App\Components;
Expand Down Expand Up @@ -1219,8 +1219,8 @@ The files will be available in a regular `$request->files` files bag::
.. tip::

Remember that in order to send multiple files from a single input you
need to specify `multiple` attribute on HTML element and end `name`
with `[]`.
need to specify ``multiple`` attribute on HTML element and end ``name``
with ``[]``.

.. _forms:

Expand Down