diff options
author | Claudio Galdiolo <claudio.galdiolo@gmail.com> | 2014-12-23 19:24:26 +0100 |
---|---|---|
committer | Claudio Galdiolo <claudio.galdiolo@gmail.com> | 2014-12-23 19:24:26 +0100 |
commit | 63dbd3c8956260126e1d31fd250412d5a7fabed7 (patch) | |
tree | e285f0127ca83c7285717803ac9da0701492f7a7 /user_guide_src/source/tutorial | |
parent | c36d3a99727c78cc8ee25074704b50114743ca72 (diff) |
use $title variable in the view
$data['title'] is defined in the controller but it is not used in the view
Diffstat (limited to 'user_guide_src/source/tutorial')
-rw-r--r-- | user_guide_src/source/tutorial/news_section.rst | 4 |
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> |