diff options
author | purwandi <free6300@gmail.com> | 2011-10-07 11:09:13 +0200 |
---|---|---|
committer | purwandi <free6300@gmail.com> | 2011-10-07 11:09:13 +0200 |
commit | 5ebf9d1d29f73c5b941fc7bb2e0a2cdcb347f74e (patch) | |
tree | 6dfdd1c7328f397409ac9d58ca16e357f391dabc | |
parent | 02df61fd8bb71ee1a19b32db24d01017ddf65131 (diff) |
Fix Views on User Guide
-rw-r--r-- | user_guide_src/source/general/views.rst | 28 |
1 files changed, 14 insertions, 14 deletions
diff --git a/user_guide_src/source/general/views.rst b/user_guide_src/source/general/views.rst index 7d0accafd..dc65f6c4f 100644 --- a/user_guide_src/source/general/views.rst +++ b/user_guide_src/source/general/views.rst @@ -24,7 +24,7 @@ in it:: <html> <head> - <title>My Blog</title> + <title>My Blog</title> </head> <body> <h1>Welcome to my Blog!</h1> @@ -141,7 +141,7 @@ to the array keys in your data:: <html> <head> - <title><?php echo $title;?></title> + <title><?php echo $title;?></title> </head> <body> <h1><?php echo $heading;?></h1> @@ -180,27 +180,27 @@ Now open your view file and create a loop:: <html> <head> - <title><?php echo $title;?></title> + <title><?php echo $title;?></title> </head> <body> - <h1><?php echo $heading;?></h1> - - <h3>My Todo List</h3> - - <ul> - <?php foreach ($todo_list as $item):?> - - <li><?php echo $item;?></li> + <h1><?php echo $heading;?></h1> + + <h3>My Todo List</h3> - <?php endforeach;?> - </ul> + <ul> + <?php foreach ($todo_list as $item):?> + + <li><?php echo $item;?></li> + + <?php endforeach;?> + </ul> </body> </html> .. note:: You'll notice that in the example above we are using PHP's alternative syntax. If you are not familiar with it you can read about - it `here </general/alternative_php>`. + it :doc:`here </general/alternative_php>`. Returning views as data ======================= |