Skip to content

Commit 5fdcd7e

Browse files
committed
docs: add or fix text decoration
1 parent cdb7b0e commit 5fdcd7e

4 files changed

Lines changed: 9 additions & 9 deletions

File tree

user_guide_src/source/tutorial/create_news_items.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ validation <../libraries/validation>` library to do this.
8282
}
8383

8484
The code above adds a lot of functionality. First we load the NewsModel.
85-
After that, we check if we deal with the ``POST`` request and then
85+
After that, we check if we deal with the **POST** request and then
8686
the Controller-provided helper function is used to validate
8787
the $_POST fields. In this case, the title and text fields are required.
8888

@@ -96,7 +96,7 @@ was submitted **and** passed all the rules, the model is called. This
9696
takes care of passing the news item into the model.
9797
This contains a new function ``url_title()``. This function -
9898
provided by the :doc:`URL helper <../helpers/url_helper>` - strips down
99-
the string you pass it, replacing all spaces by dashes (-) and makes
99+
the string you pass it, replacing all spaces by dashes (``-``) and makes
100100
sure everything is in lowercase characters. This leaves you with a nice
101101
slug, perfect for creating URIs.
102102

user_guide_src/source/tutorial/index.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ From your command line type the following:
6161

6262
composer create-project codeigniter4/appstarter ci-news
6363

64-
This creates a new folder, ci-news, which contains your application code, with
64+
This creates a new folder, **ci-news**, which contains your application code, with
6565
CodeIgniter installed in the vendor folder.
6666

6767
By default, CodeIgniter starts up in production mode. This is a safety feature
@@ -71,7 +71,7 @@ So first let's fix that. Copy or rename the ``env`` file to ``.env``. Open it up
7171
This file contains server-specific settings. This means you never will need to
7272
commit any sensitive information to your version control system. It includes
7373
some of the most common ones you want to enter already, though they are all commented
74-
out. So uncomment the line with CI_ENVIRONMENT on it, and change ``production`` to
74+
out. So uncomment the line with ``CI_ENVIRONMENT`` on it, and change ``production`` to
7575
``development``::
7676

7777
CI_ENVIRONMENT = development

user_guide_src/source/tutorial/news_section.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -228,7 +228,7 @@ and add the next piece of code.
228228
<?php endif ?>
229229

230230

231-
.. note:: We are again using using **esc()** to help prevent XSS attacks.
231+
.. note:: We are again using using ``esc()`` to help prevent XSS attacks.
232232
But this time we also passed "url" as a second parameter. That's because
233233
attack patterns are different depending on the context in which the output
234234
is used. You can read more about it :doc:`here </general/common_functions>`.

user_guide_src/source/tutorial/static_pages.rst

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ displays the CodeIgniter welcome page.
6363
The ``Pages`` class is extending the
6464
``CodeIgniter\Controller`` class. This means that the new Pages class can access the
6565
methods and variables defined in the ``CodeIgniter\Controller`` class
66-
(*system/Controller.php*).
66+
(**system/Controller.php**).
6767

6868
The **controller is what will become the center of every request** to
6969
your web application. Like any PHP class, you refer to
@@ -99,7 +99,7 @@ includes the following code:
9999
</body>
100100
</html>
101101

102-
.. note:: If you look closely in **header.php** template we are using an **esc()**
102+
.. note:: If you look closely in **header.php** template we are using an ``esc()``
103103
function. It's a global function provided by CodeIgniter to help prevent
104104
XSS attacks. You can read more about it :doc:`here </general/common_functions>`.
105105

@@ -163,7 +163,7 @@ is assigned to a variable with the name of its key. So the value of
163163
``$data['title']`` in the controller is equivalent to ``$title`` in the
164164
view.
165165

166-
.. note:: Any files and directory names passed into the **view()** function MUST
166+
.. note:: Any files and directory names passed into the ``view()`` function MUST
167167
match the case of the actual directory and file itself or the system will
168168
throw errors on case-sensitive platforms. You can read more about it
169169
:doc:`here </outgoing/views>`.
@@ -269,5 +269,5 @@ You should see something like the following:
269269
:align: center
270270

271271
.. note:: When manually specifying routes, it is recommended to disable
272-
auto-routing by setting ``$routes->setAutoRoute(false);`` in the Routes.php file.
272+
auto-routing by setting ``$routes->setAutoRoute(false);`` in the **Routes.php** file.
273273
This ensures that only routes you define can be accessed.

0 commit comments

Comments
 (0)