Skip to content

Commit 7256586

Browse files
committed
Tutorial clarifications
1 parent b571bb0 commit 7256586

File tree

2 files changed

+7
-3
lines changed

2 files changed

+7
-3
lines changed

user_guide_src/source/tutorial/news_section.rst

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,12 @@ and :doc:`Seeds <../dbmgmt/seeds>` to create more useful database setups later.
3535
KEY slug (slug)
3636
);
3737

38+
A note of interest: a "slug", in the context of web publishing, is a
39+
user- and SEO-friendly short text used in a URL to identify and describe a resource.
40+
3841
The seed records might be something like:::
3942

43+
4044
INSERT INTO news VALUES
4145
(1,'Elvis sighted','elvis-sighted','Elvis was sighted at the Podunk internet cafe. It looked like he was writing a CodeIgniter app.'),
4246
(2,'Say it isn\'t so!','say-it-isnt-so','Scientists conclude that some programmers have a sense of humor.'),
@@ -157,7 +161,7 @@ which provides a couple of helper methods, and makes sure that you have
157161
access to the current ``Request`` and ``Response`` objects, as well as the
158162
``Logger`` class, for saving information to disk.
159163

160-
Next, there are two methods to view all news items and one for a specific
164+
Next, there are two methods, one to view all news items, and one for a specific
161165
news item. You can see that the ``$slug`` variable is passed to the model's
162166
method in the second method. The model is using this slug to identify the
163167
news item to be returned.

user_guide_src/source/tutorial/static_pages.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -230,10 +230,10 @@ Here, the second rule in the ``$routes`` array matches **any** request
230230
using the wildcard string ``(:any)``. and passes the parameter to the
231231
``view()`` method of the ``Pages`` class.
232232

233-
Now visit ``index.php/about``. Did it get routed correctly to the ``showme()``
233+
Now visit ``home``. Did it get routed correctly to the ``showme()``
234234
method in the pages controller? Awesome!
235235

236-
You should see something like the following (which actually shows the "home" page in your browser:
236+
You should see something like the following:
237237

238238
.. image:: ../images/tutorial1.png
239239
:align: center

0 commit comments

Comments
 (0)