summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorClaudio Galdiolo <claudio.galdiolo@gmail.com>2014-12-23 19:24:26 +0100
committerClaudio Galdiolo <claudio.galdiolo@gmail.com>2014-12-23 19:24:26 +0100
commit63dbd3c8956260126e1d31fd250412d5a7fabed7 (patch)
treee285f0127ca83c7285717803ac9da0701492f7a7
parentc36d3a99727c78cc8ee25074704b50114743ca72 (diff)
use $title variable in the view
$data['title'] is defined in the controller but it is not used in the view
-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>