summaryrefslogtreecommitdiffstats
path: root/user_guide_src/source
diff options
context:
space:
mode:
authorAndrey Andreev <narf@devilix.net>2014-12-25 01:02:25 +0100
committerAndrey Andreev <narf@devilix.net>2014-12-25 01:02:25 +0100
commit40b6423c734bec0d6887b6268a7d2f09dd2a45a5 (patch)
treee285f0127ca83c7285717803ac9da0701492f7a7 /user_guide_src/source
parentc36d3a99727c78cc8ee25074704b50114743ca72 (diff)
parent63dbd3c8956260126e1d31fd250412d5a7fabed7 (diff)
Merge pull request #3439 from galdiolo/patch-1
[ci skip] use $title variable in the view
Diffstat (limited to 'user_guide_src/source')
-rw-r--r--user_guide_src/source/tutorial/news_section.rst4
1 files changed, 3 insertions, 1 deletions
diff --git a/user_guide_src/source/tutorial/news_section.rst b/user_guide_src/source/tutorial/news_section.rst
index ad9ed41d3..4304dc968 100644
--- a/user_guide_src/source/tutorial/news_section.rst
+++ b/user_guide_src/source/tutorial/news_section.rst
@@ -143,9 +143,11 @@ and add the next piece of code.
::
+ <h2><?php echo $title ?></h2>
+
<?php foreach ($news as $news_item): ?>
- <h2><?php echo $news_item['title'] ?></h2>
+ <h3><?php echo $news_item['title'] ?></h3>
<div class="main">
<?php echo $news_item['text'] ?>
</div>